1 |
efrain |
1 |
{{!
|
|
|
2 |
This file is part of Moodle - http://moodle.org/
|
|
|
3 |
|
|
|
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.
|
|
|
8 |
|
|
|
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.
|
|
|
13 |
|
|
|
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/>.
|
|
|
16 |
}}
|
|
|
17 |
{{!
|
|
|
18 |
@template core_courseformat/local/courseindex/drawer
|
|
|
19 |
|
|
|
20 |
This template renders the course index drawer with the placeholder.
|
|
|
21 |
|
|
|
22 |
The code from this file is just an stub as the final code will come from
|
|
|
23 |
the new layouts for Moodle 4.0.
|
|
|
24 |
|
|
|
25 |
Example context (json):
|
|
|
26 |
{}
|
|
|
27 |
}}
|
|
|
28 |
<nav id="courseindex" class="courseindex">
|
|
|
29 |
<div id="courseindex-content">
|
|
|
30 |
{{> core_courseformat/local/courseindex/placeholders }}
|
|
|
31 |
</div>
|
|
|
32 |
</nav>
|
|
|
33 |
{{#js}}
|
|
|
34 |
require(['core_courseformat/local/courseindex/drawer'], function(component) {
|
|
|
35 |
component.init('courseindex');
|
|
|
36 |
});
|
|
|
37 |
{{/js}}
|