MDL-63058 core_favourites: add existence checks to the service layer
[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
BB
23 {
24 "nocoursesimg": "https://moodlesite/theme/image.php/boost/block_myoverview/1535727318/courses"
25 }
992c6304 26}}
e4b4b9e7
BB
27<div id="courses-view-{{uniqid}}"
28 data-region="courses-view"
29 data-display="cards"
30 data-grouping="all"
31 data-sort="fullname"
32 data-nocoursesimg="{{nocoursesimg}}">
33 <div data-region="course-view-content">
34 <div data-region="courses-loading-placeholder">
35 <div class="row card-deck">
36 {{> block_myoverview/placeholder-course }}
37 {{> block_myoverview/placeholder-course }}
38 {{> block_myoverview/placeholder-course }}
39 {{> block_myoverview/placeholder-course }}
40 </div>
0fc7dbce 41 </div>
cbd3c4fe 42 </div>
e4b4b9e7 43</div>