{{!
    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 <http://www.gnu.org/licenses/>.
}}
{{!
    @template mod_interactivevideo/courseindex

    TODO describe template courseindex

    Example context (json):
    {
    }
}}

{{< theme_boost/drawer }}
    {{$id}}theme_boost-drawers-courseindex{{/id}}
    {{$drawerheadercontent}}
        {{> theme_boost/courseindexdrawercontrols}}
    {{/drawerheadercontent}}
    {{$drawerclasses}}shadow-sm drawer drawer-left {{#courseindexopen}}show{{/courseindexopen}}{{/drawerclasses}}
    {{$drawercontent}}
        {{{courseindex}}}
    {{/drawercontent}}
    {{$drawerpreferencename}}drawer-open-index{{/drawerpreferencename}}
    {{$drawerstate}}show-drawer-left{{/drawerstate}}
    {{$tooltipplacement}}right{{/tooltipplacement}}
    {{$closebuttontext}}{{#str}}closecourseindex, core{{/str}}{{/closebuttontext}}
{{/ theme_boost/drawer}}
{{#js}}
    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}}
