{{!
    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/>.
}}
{{!
 @package   theme_snap
 @copyright Copyright (c) 2016 Open LMS (https://www.openlms.net)
 @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
}}
<ol id="chapters" class="chapters {{listlarge}}" start="0">
    {{#chapters}}
    <h3>
    <li class="{{classes}}">
        {{#outputlink}}
            <a class="chapter-title" section-id="{{sectionid}}" section-number="{{section}}" href="{{url}}">{{{title}}}</a>
        {{/outputlink}}
        {{^outputlink}}
            <span class="chapter-title" section-id="{{sectionid}}" section-number="{{section}}">{{title}}</span>
        {{/outputlink}}
        {{#iscurrent}}
            <span class="text text-success">
                <small>{{#str}}current, theme_snap{{/str}}</small>
            </span>
        {{/iscurrent}}
        {{#availabilitystatus}}
            <span class="text {{availabilityclass}}">
                <small class="published-status">{{availabilitystatus}}</small>
            </span>
        {{/availabilitystatus}}
        {{#progress}}{{#progress.total}}
            <span class="text completionstatus outoftotal">
                {{#completed}}
                <img class="snap-section-complete" src="{{pixcompleted}}" alt="{{#str}}completed, completion{{/str}}" />
                {{/completed}}
                <small>
                    {{#str}} progresstotal, completion, {"complete":  {{progress.complete}}, "total": {{progress.total}}} {{/str}}
                </small>
            </span>
        {{/progress.total}}{{/progress}}
    </li>
    </h3>
    {{/chapters}}
</ol>
