Skip to content

Commit

Permalink
realigns drawers page-template with the Boost original.
Browse files Browse the repository at this point in the history
blankspace/indentation changes only.
this should make it a bit easier to compare this copy to its original.
  • Loading branch information
stopfstedt committed Sep 26, 2024
1 parent 35526bd commit 2d54413
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions templates/drawers.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"favicon": "favicon.ico",
"main_content": "<h1>Headings make html validators happier</h1>"
},
"bodyattributes": "",
"bodyattributes":"",
"sidepreblocks": "<h2>Blocks html goes here</h2>",
"hasblocks":true,
"courseindexopen": true,
Expand Down Expand Up @@ -102,13 +102,13 @@
{{#courseindex}}
<div class="drawer-toggler drawer-left-toggle open-nav d-print-none">
<button
class="btn icon-no-margin"
data-toggler="drawers"
data-action="toggle"
data-target="theme_boost-drawers-courseindex"
data-toggle="tooltip"
data-placement="right"
title="{{#str}}opendrawerindex, core{{/str}}"
class="btn icon-no-margin"
data-toggler="drawers"
data-action="toggle"
data-target="theme_boost-drawers-courseindex"
data-toggle="tooltip"
data-placement="right"
title="{{#str}}opendrawerindex, core{{/str}}"
>
<span class="sr-only">{{#str}}opendrawerindex, core{{/str}}</span>
{{#pix}} t/index_drawer, moodle {{/pix}}
Expand All @@ -118,13 +118,13 @@
{{#hasblocks}}
<div class="drawer-toggler drawer-right-toggle ml-auto d-print-none">
<button
class="btn icon-no-margin"
data-toggler="drawers"
data-action="toggle"
data-target="theme_boost-drawers-blocks"
data-toggle="tooltip"
data-placement="right"
title="{{#str}}opendrawerblocks, core{{/str}}"
class="btn icon-no-margin"
data-toggler="drawers"
data-action="toggle"
data-target="theme_boost-drawers-blocks"
data-toggle="tooltip"
data-placement="right"
title="{{#str}}opendrawerblocks, core{{/str}}"
>
<span class="sr-only">{{#str}}opendrawerblocks, core{{/str}}</span>
<span class="dir-rtl-hide">{{#pix}}t/blocks_drawer, core{{/pix}}</span>
Expand All @@ -142,9 +142,9 @@
<div id="page-content" class="pb-3 d-print-block">
<div id="region-main-box">
{{#hasregionmainsettingsmenu}}
<div id="region-main-settings-menu" class="d-print-none">
<div> {{{ regionmainsettingsmenu }}} </div>
</div>
<div id="region-main-settings-menu" class="d-print-none">
<div> {{{ regionmainsettingsmenu }}} </div>
</div>
{{/hasregionmainsettingsmenu}}
<section id="region-main" aria-label="{{#str}}content{{/str}}">

Expand Down Expand Up @@ -180,9 +180,9 @@
</body>
</html>
{{#js}}
M.util.js_pending('theme_boost/loader');
require(['theme_boost/loader', 'theme_boost/drawer'], function(Loader, Drawer) {
M.util.js_pending('theme_boost/loader');
require(['theme_boost/loader', 'theme_boost/drawer'], function(Loader, Drawer) {
Drawer.init();
M.util.js_complete('theme_boost/loader');
});
});
{{/js}}

0 comments on commit 2d54413

Please sign in to comment.