{{!
    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.

    Edwiser RemUI
    @package   theme_remui
    @copyright (c) 2020 WisdmLabs (https://wisdmlabs.com/)
    @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

}}
{{!
    @template theme_remui/activity_navigation

    Display the activity navigation for all activities in a course

    Context variables required for this template:

    Example context (json):
    {
        "coursecount": "1"
    }
}}
<table class="table w-full" style="display: none;">
    <thead>
        <tr>
            <th class="align-middle text-nowrap bg-image-none no-sorting-arrow" rowspan="2">
                {{#str}} name, local_edwiserreports {{/str}}
            </th>
            <th class="align-middle text-nowrap bg-image-none no-sorting-arrow" rowspan="2">
                {{#str}} email, local_edwiserreports {{/str}}
            </th>
            <th class="align-middle text-nowrap bg-image-none no-sorting-arrow" rowspan="2">
                {{#str}} enrolled, local_edwiserreports {{/str}}
            </th>
            <th class="align-middle text-nowrap bg-image-none no-sorting-arrow" rowspan="2">
                {{#str}} lastaccess, local_edwiserreports {{/str}}
            </th>
            <th class="align-middle text-nowrap bg-image-none no-sorting-arrow" rowspan="2">
                {{#str}} grade, local_edwiserreports {{/str}}
            </th>
            <th class="text-center text-nowrap bg-image-none no-sorting-arrow border-bottom-0" colspan="{{coursecount}}">
                {{#str}} progress, local_edwiserreports {{/str}}
            </th>
        </tr>
        <tr>
            {{#courses}}
            <th class="text-center text-nowrap bg-image-none no-sorting-arrow">{{shortname}}</th>
            {{/courses}}
            <th class="text-center text-nowrap bg-image-none no-sorting-arrow">{{#str}} avgprogress, local_edwiserreports {{/str}}</th>
        </tr>
    </thead>
    <tbody>
        {{#users}}
        <tr>
            <td>{{name}}</td>
            <td>{{email}}</td>
            <td>{{enrolled}}</td>
            <td>{{lastaccess}}</td>
            <td class="text-center">{{grade}}</td>
            {{#progress}}
            <td class="text-center">{{.}}</td>
            {{/progress}}
            <td class="text-center">{{avgprogress}}</td>
        </tr>
        {{/users}}
    </tbody>
</table>
