MDL-63880 core_course: Move common templates to core_course
[moodle.git] / blocks / recentlyaccessedcourses / templates / recentlyaccessedcourses-view.mustache
CommitLineData
41f61293
VDF
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_recentlyaccessedcourses/recentlyaccessedcourses-view
19
20 This template renders the courses view for the recentlyaccessedcourses block.
21
22 Example context (json):
23 {
a29135f8 24 "nocoursesimg": "https://moodlesite/theme/image.php/boost/block_recentlyaccessedcourses/1535727318/courses"
41f61293
VDF
25 }
26}}
27<div id="recentlyaccessedcourses-view-{{uniqid}}"
28 data-region="recentlyaccessedcourses-view"
a29135f8 29 data-nocoursesimg="{{nocoursesimg}}">
41f61293
VDF
30 <div data-region="recentlyaccessedcourses-view-content">
31 <div data-region="recentlyaccessedcourses-loading-placeholder">
356bfb69 32 <div class="card-deck dashboard-card-deck one-row" style="height: 11.1rem">
a29135f8
MM
33 {{> core_course/placeholder-course }}
34 {{> core_course/placeholder-course }}
35 {{> core_course/placeholder-course }}
36 {{> core_course/placeholder-course }}
41f61293
VDF
37 </div>
38 </div>
39 </div>
40</div>