MDL-63044 block_timeline: add timeline block
[moodle.git] / theme / bootstrapbase / templates / block_timeline / nav-view-selector.mustache
blob4caeda98a395d1efa6f937b9f16c1361f0b4db53
1 {{!
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/>.
17 {{!
18     @template block_timeline/nav-view-selector
20     This template renders the timeline sort selector.
22     Example context (json):
23     {}
25 <div data-region="view-selector" class="btn-group pull-right">
26     <button type="button" class="btn dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
27         {{#pix}} i/filter {{/pix}}
28         <span class="sr-only">
29             {{#str}} ariaviewselector, block_timeline{{/str}}
30             <span data-active-item-text>{{#str}} sortbydates, block_timeline {{/str}}</span>
31         </span>
32         <span data-region="caret" class="caret"></span>
33     </button>
34     <ul role="menu" class="dropdown-menu dropdown-menu-right" data-show-active-item>
35         <li class="dropdown-item active" data-target="#view_dates_{{uniqid}}" data-toggle="tab">
36             <a href="#" aria-label="{{#str}} ariaviewselectoroption, block_timeline, {{#str}} sortbydates, block_timeline {{/str}}{{/str}}">
37                 {{#str}} sortbydates, block_timeline {{/str}}
38             </a>
39         </li>
40         <li class="dropdown-item" data-target="#view_courses_{{uniqid}}" data-toggle="tab">
41             <a href="#" aria-label="{{#str}} ariaviewselectoroption, block_timeline, {{#str}} sortbycourses, block_timeline {{/str}}{{/str}}">
42                 {{#str}} sortbycourses, block_timeline {{/str}}
43             </a>
44         </li>
45     </ul>
46 </div>