2 This file is part of Moodle - http://moodle.org/
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.
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.
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/>.
18 @template core/initials_bar
22 Example context (json):
24 "title": "First name",
25 "class": "firstinitial",
27 "url": "http://moodle.generic32/report/progress/index.php?course=2&sifirst",
34 "url": "http://moodle.generic32/report/progress/index.php?course=2&sifirst=A"
38 "url": "http://moodle.generic32/report/progress/index.php?course=2&sifirst=B"
42 "url": "http://moodle.generic32/report/progress/index.php?course=2&sifirst=C"
46 "url": "http://moodle.generic32/report/progress/index.php?course=2&sifirst=D"
55 "url": "http://moodle.generic32/report/progress/index.php?course=2&sifirst=W",
60 "url": "http://moodle.generic32/report/progress/index.php?course=2&sifirst=X"
64 "url": "http://moodle.generic32/report/progress/index.php?course=2&sifirst=Y"
68 "url": "http://moodle.generic32/report/progress/index.php?course=2&sifirst=Z"
76 <div class="initialbar {{class}}">
77 <span class="initialbarlabel">{{title}}</span>
79 <a class="initialbarall page-item letter" href="{{url}}">{{all}}</a>
82 <div class="initialbarall letter page-item active">{{all}}</div>
85 <div class="initialbargroups">
87 <ul class="initialbargroup">
90 <li><span class="letter page-item active {{name}}">{{name}}</span></li>
93 <li><a class="letter page-item {{name}}" href="{{url}}">{{name}}</a></li>