Skip to content
Snippets Groups Projects
Commit cc90b4ec authored by Kathrin Osswald's avatar Kathrin Osswald
Browse files

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
......@@ -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.
......
......@@ -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($) {
......
......@@ -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($) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment