weekly release 3.6dev
[moodle.git] / blocks / myoverview / templates / courses-view.mustache
CommitLineData
992c6304
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/courses-view
19
20 This template renders the courses view for the myoverview block.
50819832
RW
21
22 Example context (json):
23 {}
992c6304
CB
24}}
25<div id="courses-view-{{uniqid}}" data-region="courses-view">
cbd3c4fe 26 {{#hascourses}}
0fc7dbce 27 <div class="tab-content">
3ec69c2e 28 <div class="tab-pane active fade show" id="myoverview_courses_view_in_progress">
9ac2e865
RW
29 {{#inprogress}}
30 {{< block_myoverview/courses-view-by-status }}
6391b320 31 {{$id}}courses-view-in-progress{{/id}}
9ac2e865 32 {{$status}}1{{/status}}
6391b320
RW
33 {{$pagingbarid}}pb-for-in-progress{{/pagingbarid}}
34 {{$pagingcontentid}}pc-for-in-progress{{/pagingcontentid}}
9ac2e865
RW
35 {{/ block_myoverview/courses-view-by-status }}
36 {{/inprogress}}
cbd3c4fe 37 {{^inprogress}}
3ec69c2e 38 <div class="justify-content-center text-center mt-5">
cbd3c4fe
RW
39 <img class="empty-placeholder-image-lg"
40 src="{{urls.nocourses}}"
cff78dc4
SL
41 alt="{{#str}} nocoursesinprogress, block_myoverview {{/str}}"
42 role="presentation">
3ec69c2e 43 <p class="text-muted mt-3">{{#str}} nocoursesinprogress, block_myoverview {{/str}}</p>
cbd3c4fe
RW
44 </div>
45 {{/inprogress}}
0fc7dbce
SL
46 </div>
47 <div class="tab-pane fade" id="myoverview_courses_view_future">
9ac2e865
RW
48 {{#future}}
49 {{< block_myoverview/courses-view-by-status }}
6391b320 50 {{$id}}courses-view-future{{/id}}
9ac2e865 51 {{$status}}2{{/status}}
6391b320
RW
52 {{$pagingbarid}}pb-for-future{{/pagingbarid}}
53 {{$pagingcontentid}}pc-for-in-progress{{/pagingcontentid}}
9ac2e865
RW
54 {{/ block_myoverview/courses-view-by-status }}
55 {{/future}}
cbd3c4fe 56 {{^future}}
3ec69c2e 57 <div class="justify-content-center text-center mt-5">
cbd3c4fe
RW
58 <img class="empty-placeholder-image-lg"
59 src="{{urls.nocourses}}"
cff78dc4
SL
60 alt="{{#str}} nocoursesfuture, block_myoverview {{/str}}"
61 role="presentation">
3ec69c2e 62 <p class="text-muted mt-3">{{#str}} nocoursesfuture, block_myoverview {{/str}}</p>
cbd3c4fe
RW
63 </div>
64 {{/future}}
0fc7dbce
SL
65 </div>
66 <div class="tab-pane fade" id="myoverview_courses_view_past">
9ac2e865
RW
67 {{#past}}
68 {{< block_myoverview/courses-view-by-status }}
6391b320 69 {{$id}}courses-view-past{{/id}}
9ac2e865 70 {{$status}}0{{/status}}
6391b320
RW
71 {{$pagingbarid}}pb-for-past{{/pagingbarid}}
72 {{$pagingcontentid}}pc-for-in-progress{{/pagingcontentid}}
9ac2e865
RW
73 {{/ block_myoverview/courses-view-by-status }}
74 {{/past}}
cbd3c4fe 75 {{^past}}
3ec69c2e 76 <div class="justify-content-center text-center mt-5">
cbd3c4fe
RW
77 <img class="empty-placeholder-image-lg"
78 src="{{urls.nocourses}}"
cff78dc4
SL
79 alt="{{#str}} nocoursespast, block_myoverview {{/str}}"
80 role="presentation">
3ec69c2e 81 <p class="text-muted mt-3">{{#str}} nocoursespast, block_myoverview {{/str}}</p>
cbd3c4fe
RW
82 </div>
83 {{/past}}
0fc7dbce 84 </div>
992c6304 85 </div>
cbd3c4fe
RW
86 {{/hascourses}}
87 {{^hascourses}}
3ec69c2e 88 <div class="justify-content-center text-center mt-5">
cbd3c4fe
RW
89 <img class="empty-placeholder-image-lg"
90 src="{{urls.nocourses}}"
cff78dc4
SL
91 alt="{{#str}} nocourses, block_myoverview {{/str}}"
92 role="presentation">
3ec69c2e 93 <p class="text-muted mt-3">{{#str}} nocourses, block_myoverview {{/str}}</p>
cbd3c4fe
RW
94 </div>
95 {{/hascourses}}
3ec69c2e 96</div>