{{! This file is part of Moodle - http://moodle.org/ Moodle is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Moodle is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Moodle. If not, see . }} {{! @template core_courseformat/local/courseindex/section Displays a course index section entry. Example context (json): { "title": "General", "id": 23, "uniqid": "0", "number": 1, "sectionurl": "#", "indexcollapsed": 0, "component": null, "current": 1, "visible": 1, "hasrestrictions": 0, "cms": [ { "id": 10, "name": "Glossary of characters", "url": "#", "visible": 1, "isactive": 0 }, { "id": 11, "name": "World Cinema forum", "url": "#", "visible": 1, "isactive": 0 }, { "id": 12, "name": "Announcements", "url": "#", "visible": 0, "isactive": 1 } ] } }}
    {{#cms}} {{> core_courseformat/local/courseindex/cm }} {{/cms}}
{{#js}} require(['core_courseformat/local/courseindex/section'], function(component) { component.init('course-index-section-{{id}}'); }); {{/js}}