912 |
ariadna |
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 |
{{!
|
918 |
ariadna |
18 |
@template theme_universe_child/courseindex/placeholders
|
912 |
ariadna |
19 |
|
|
|
20 |
This template renders the loading placeholders for the course index.
|
|
|
21 |
|
|
|
22 |
Example context (json):
|
|
|
23 |
{}
|
|
|
24 |
}}
|
|
|
25 |
<div data-region="loading-placeholder-content" aria-hidden="true" id="course-index-placeholder">
|
|
|
26 |
<ul class="placeholders list-unstyled px-5">
|
|
|
27 |
<li>
|
|
|
28 |
<div class="col-md-6 p-0 d-flex align-items-center">
|
|
|
29 |
<div class="bg-pulse-grey rounded-circle mr-2"></div>
|
|
|
30 |
<div class="bg-pulse-grey w-100"></div>
|
|
|
31 |
</div>
|
|
|
32 |
</li>
|
|
|
33 |
<li>
|
|
|
34 |
<div class="col-md-6 p-0 d-flex align-items-center">
|
|
|
35 |
<div class="bg-pulse-grey rounded-circle mr-2"></div>
|
|
|
36 |
<div class="bg-pulse-grey w-100"></div>
|
|
|
37 |
</div>
|
|
|
38 |
</li>
|
|
|
39 |
<li>
|
|
|
40 |
<div class="col-md-6 p-0 d-flex align-items-center">
|
|
|
41 |
<div class="bg-pulse-grey rounded-circle mr-2"></div>
|
|
|
42 |
<div class="bg-pulse-grey w-100"></div>
|
|
|
43 |
</div>
|
|
|
44 |
</li>
|
|
|
45 |
<li>
|
|
|
46 |
<div class="col-md-6 p-0 d-flex align-items-center">
|
|
|
47 |
<div class="bg-pulse-grey rounded-circle mr-2"></div>
|
|
|
48 |
<div class="bg-pulse-grey w-100"></div>
|
|
|
49 |
</div>
|
|
|
50 |
</li>
|
|
|
51 |
</ul>
|
|
|
52 |
</div>
|
|
|
53 |
{{#js}}
|
918 |
ariadna |
54 |
require(['core_courseformat/local/courseindex/placeholder'], function(component) {
|
912 |
ariadna |
55 |
component.init('course-index-placeholder');
|
|
|
56 |
});
|
|
|
57 |
{{/js}}
|