Merge branch 'MDL-78676-master' of https://github.com/sarjona/moodle
[moodle.git] / theme / boost / templates / maintenance.mustache
blob7cd0596cd9cf6ccee87539411212de8e2018af1a
1 {{!
2     This file is part of Moodle - http://moodle.org/
4     Moodle is free software: you can redistribute it and/or modify
5     it under the terms of the GNU General Public License as published by
6     the Free Software Foundation, either version 3 of the License, or
7     (at your option) any later version.
9     Moodle is distributed in the hope that it will be useful,
10     but WITHOUT ANY WARRANTY; without even the implied warranty of
11     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12     GNU General Public License for more details.
14     You should have received a copy of the GNU General Public License
15     along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
17 {{!
18     @template theme_boost/maintenance
20     Boost maintenance layout template.
22     Context variables required for this template:
23     * output - The core renderer for the page
25     Example context (json):
26     {
27         "output": {
28             "doctype": "<!DOCTYPE html>",
29             "page_title": "Test page",
30             "favicon": "favicon.ico",
31             "main_content": "<h1>Headings make html validators happier</h1>"
32          }
33     }
35 {{{ output.doctype }}}
36 <html {{{ output.htmlattributes }}}>
37 <head>
38     <title>{{{ output.page_title }}}</title>
39     <link rel="shortcut icon" href="{{{ output.favicon }}}" />
40     {{{ output.standard_head_html }}}
41     <meta name="viewport" content="width=device-width, initial-scale=1.0">
42 </head>
44 <body {{{ output.body_attributes }}}>
45 {{> core/local/toast/wrapper}}
47 <div id="page-wrapper">
49     {{{ output.standard_top_of_body_html }}}
51     <div id="page" class="container pb-3">
53         <div class="row">
54             <div class="col-12 py-3">
55                 {{{ output.page_heading }}}
56             </div>
57         </div>
59         <div id="page-content" class="row">
60             <section id="region-main" class="col-12" aria-label="{{#str}}content{{/str}}">
61                 {{{ output.main_content }}}
62             </section>
63         </div>
65     </div>
66     {{> theme_boost/footer }}
67 </div>
69 </body>
70 </html>
71 {{#js}}
72 M.util.js_pending('theme_boost/loader');
73 require(['theme_boost/loader'], function() {
74   M.util.js_complete('theme_boost/loader');
75 });
76 {{/js}}