Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-theme_boost_campus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-theme_boost_campus
Commits
cc90b4ec
Commit
cc90b4ec
authored
5 years ago
by
Kathrin Osswald
Browse files
Options
Downloads
Patches
Plain Diff
Adjusted loginform.mustache template due to upstream changes in Moodle core.
parent
21d498ad
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGES.md
+1
-0
1 addition, 0 deletions
CHANGES.md
templates/loginform.mustache
+21
-3
21 additions, 3 deletions
templates/loginform.mustache
templates/loginform.mustache.original
+21
-3
21 additions, 3 deletions
templates/loginform.mustache.original
with
43 additions
and
6 deletions
CHANGES.md
+
1
−
0
View file @
cc90b4ec
...
...
@@ -6,6 +6,7 @@ Changes
### Unreleased
*
2019-10-28 - Adjusted loginform.mustache template due to upstream changes in Moodle core.
*
2019-10-28 - Adjusted function favicon() in core_renderer.php due to upstream changes in Moodle core.
*
2019-10-28 - Removed CSS rule for maintenance warning due to upstream changes.
...
...
This diff is collapsed.
Click to expand it.
templates/loginform.mustache
+
21
−
3
View file @
cc90b4ec
...
...
@@ -38,8 +38,9 @@
*
cookieshelpiconformatted
-
Formatted
html
of
cookies
help
icon
,
*
errorformatted
-
Formatted
error
,
*
logourl
-
Flag
,
logo
url
,
*
sitename
-
Name
of
site.
*
logintoken
-
Random
token
to
protect
login
request.
*
sitename
-
Name
of
site
.
,
*
logintoken
-
Random
token
to
protect
login
request
.
,
*
maintenance
-
Maintenance
message
Example
context
(
json
)
:
{
...
...
@@ -89,7 +90,8 @@
"errorformatted"
:
""
,
"logourl"
:
false
,
"sitename"
:
"Beer & Chips"
,
"logintoken"
:
"randomstring"
"logintoken"
:
"randomstring"
,
"maintenance"
:
"For full access to this site, you need to login in as an admin."
}
}}
{{
!
MODIFICATION
:
...
...
@@ -228,6 +230,22 @@
</div>
{{/
hasinstructions
}}
{{#
maintenance
}}
<div
class=
"row justify-content-center mt-3"
>
<div
class=
"col-xl-6 col-sm-8"
>
<div
class=
"card"
>
<div
class=
"card-body"
>
<div
class=
"card-title"
>
<h2>
{{#
str
}}
sitemaintenance, core_admin
{{/
str
}}
</h2>
</div>
<div>
{{{
maintenance
}}}
</div>
</div>
</div>
</div>
</div>
{{/
maintenance
}}
{{#
js
}}
{{#
error
}}
require(['jquery'], function($) {
...
...
This diff is collapsed.
Click to expand it.
templates/loginform.mustache.original
+
21
−
3
View file @
cc90b4ec
...
...
@@ -38,8 +38,9 @@
* cookieshelpiconformatted - Formatted html of cookies help icon,
* errorformatted - Formatted error,
* logourl - Flag, logo url,
* sitename - Name of site.
* logintoken - Random token to protect login request.
* sitename - Name of site.,
* logintoken - Random token to protect login request.,
* maintenance - Maintenance message
Example context (json):
{
...
...
@@ -89,7 +90,8 @@
"errorformatted": "",
"logourl": false,
"sitename": "Beer & Chips",
"logintoken": "randomstring"
"logintoken": "randomstring",
"maintenance": "For full access to this site, you need to login in as an admin."
}
}}
...
...
@@ -224,6 +226,22 @@
</div>
{{/hasinstructions}}
{{#maintenance}}
<div class="row justify-content-center mt-3">
<div class="col-xl-6 col-sm-8">
<div class="card">
<div class="card-body">
<div class="card-title">
<h2>{{#str}}sitemaintenance, core_admin{{/str}}</h2>
</div>
<div>
{{{maintenance}}}
</div>
</div>
</div>
</div>
</div>
{{/maintenance}}
{{#js}}
{{#error}}
require(['jquery'], function($) {
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment