MDL-63793 block_myoverview: Persist the user's paging limit preference
[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):
e4b4b9e7 23 {
3cfff885
BB
24 "nocoursesimg": "https://moodlesite/theme/image.php/boost/block_myoverview/1535727318/courses",
25 "grouping": "all",
26 "sort": "fullname",
27 "view": "card"
e4b4b9e7 28 }
992c6304 29}}
e4b4b9e7
BB
30<div id="courses-view-{{uniqid}}"
31 data-region="courses-view"
3cfff885
BB
32 data-display="{{view}}"
33 data-grouping="{{grouping}}"
34 data-sort="{{sort}}"
e6f03948 35 data-prev-display="{{view}}"
11988d74 36 data-paging="{{paging}}"
e4b4b9e7
BB
37 data-nocoursesimg="{{nocoursesimg}}">
38 <div data-region="course-view-content">
39 <div data-region="courses-loading-placeholder">
4fd6b770 40 <div class="card-deck dashboard-card-deck">
e4b4b9e7
BB
41 {{> block_myoverview/placeholder-course }}
42 {{> block_myoverview/placeholder-course }}
43 {{> block_myoverview/placeholder-course }}
44 {{> block_myoverview/placeholder-course }}
45 </div>
0fc7dbce 46 </div>
cbd3c4fe 47 </div>
3cfff885 48</div>