MDL-57447 block_myoverview: add context for courses view
[moodle.git] / blocks / myoverview / templates / main.mustache
CommitLineData
1c68e83b
CB
1{{!
2 This file is part of Moodle - http://moodle.org/
3
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.
8
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.
13
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/>.
16}}
17{{!
18 @template block_myoverview/main
19
20 This template renders the main content area for the myoverview block.
50819832
RW
21
22 Example context (json):
23 {}
1c68e83b
CB
24}}
25
26<div id="block-myoverview-{{uniqid}}" class="block-myoverview container-fluid" data-region="myoverview">
27 <div class="row">
28 <ul class="nav nav-tabs" role="tablist">
29 <li class="nav-item">
30 <a class="nav-link active" href="#myoverview_timeline_view" role="tab" data-toggle="tab">
31 {{#str}} timeline, block_myoverview {{/str}}
32 </a>
33 </li>
34 <li class="nav-item">
35 <a class="nav-link" href="#myoverview_courses_view" role="tab" data-toggle="tab">
36 {{#str}} courses {{/str}}
37 </a>
38 </li>
39 </ul>
40 </div>
41
42 <div class="tab-content">
43 <div role="tabpanel" class="tab-pane fade in active" id="myoverview_timeline_view">
44 {{> block_myoverview/timeline-view }}
45 </div>
46 <div role="tabpanel" class="tab-pane fade" id="myoverview_courses_view">
9ac2e865
RW
47 {{#coursesview}}
48 {{> block_myoverview/courses-view }}
49 {{/coursesview}}
1c68e83b
CB
50 </div>
51 </div>
52</div>