1 |
efrain |
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 |
{
|
|
|
24 |
}
|
|
|
25 |
}}
|
|
|
26 |
<div id="recentlyaccessedcourses-view-{{uniqid}}" data-region="recentlyaccessedcourses-view">
|
|
|
27 |
<div data-region="loading-placeholder">
|
|
|
28 |
<div class="overflow-hidden rui-loading-placeholder">
|
|
|
29 |
<svg class="spinner" viewBox="0 0 50 50">
|
|
|
30 |
<circle class="path" cx="25" cy="25" r="20" fill="none" stroke-width="5"></circle>
|
|
|
31 |
</svg>
|
|
|
32 |
</div>
|
|
|
33 |
</div>
|
|
|
34 |
<div class="hidden" data-region="view-content">
|
|
|
35 |
{{#pagingbar}}
|
|
|
36 |
<div class="d-flex paging-bar-container" data-region="paging-bar-container">
|
|
|
37 |
{{> core/paged_content_paging_bar }}
|
|
|
38 |
</div>
|
|
|
39 |
{{/pagingbar}}
|
|
|
40 |
{{< core_course/coursecards }}
|
|
|
41 |
{{$classes}}one-row fixed-width-cards justify-content-center overflow-hidden{{/classes}}
|
|
|
42 |
{{/ core_course/coursecards }}
|
|
|
43 |
</div>
|
|
|
44 |
<div class="hidden text-xs-center text-center mt-3" data-region="empty-message">
|
|
|
45 |
<p class="text-muted mt-3">{{#str}} nocourses, block_recentlyaccessedcourses {{/str}}</p>
|
|
|
46 |
</div>
|
|
|
47 |
</div>
|