d61c984370376a74ca78dc546dbc5b46676f3b8a
[moodle.git] / blocks / myoverview / templates / placeholders.mustache
1 {{!
2     This file is part of Moodle - http://moodle.org/
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.
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.
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/placeholders
20     This template renders the loading placeholders for the myoverview block.
22     Example context (json):
23     {}
24 }}
25 <div data-region="loading-placeholder-content" aria-hidden="true">
26     {{#cards}}
27     <div class="card-deck dashboard-card-deck one-row" style="height: 13rem">
28         <div class="card dashboard-card border-0">
29             <div class="card-img-top bg-pulse-grey w-100" style="height: 7rem">
30             </div>
31             <div class="card-body course-info-container">
32                 <div class="bg-pulse-grey w-100" style="height: 1rem"></div>
33             </div>
34         </div>
35         <div class="card dashboard-card border-0">
36             <div class="card-img-top bg-pulse-grey w-100" style="height: 7rem">
37             </div>
38             <div class="card-body course-info-container">
39                 <div class="bg-pulse-grey w-100" style="height: 1rem"></div>
40             </div>
41         </div>
42         <div class="card dashboard-card border-0">
43             <div class="card-img-top bg-pulse-grey w-100" style="height: 7rem">
44             </div>
45             <div class="card-body course-info-container">
46                 <div class="bg-pulse-grey w-100" style="height: 1rem"></div>
47             </div>
48         </div>
49         <div class="card dashboard-card border-0">
50             <div class="card-img-top bg-pulse-grey w-100" style="height: 7rem">
51             </div>
52             <div class="card-body course-info-container">
53                 <div class="bg-pulse-grey w-100" style="height: 1rem"></div>
54             </div>
55         </div>
56     </div>
57     {{/cards}}
58     {{#list}}
59     <ul class="list-group">
60         <li class="list-group-item course-listitem">
61             <div class="col-md-6 span6 p-0 d-flex align-items-center">
62                 <div class="bg-pulse-grey rounded-circle mr-2" style="height: 1rem; width: 1rem;"></div>
63                 <div class="bg-pulse-grey w-50" style="height: 1rem; margin: 0.5rem 0"></div>
64             </div>
65         </li>
66         <li class="list-group-item course-listitem">
67             <div class="col-md-6 span6 p-0 d-flex align-items-center">
68                 <div class="bg-pulse-grey rounded-circle mr-2" style="height: 1rem; width: 1rem;"></div>
69                 <div class="bg-pulse-grey w-50" style="height: 1rem; margin: 0.5rem 0"></div>
70             </div>
71         </li>
72         <li class="list-group-item course-listitem">
73             <div class="col-md-6 span6 p-0 d-flex align-items-center">
74                 <div class="bg-pulse-grey rounded-circle mr-2" style="height: 1rem; width: 1rem;"></div>
75                 <div class="bg-pulse-grey w-50" style="height: 1rem; margin: 0.5rem 0"></div>
76             </div>
77         </li>
78         <li class="list-group-item course-listitem">
79             <div class="col-md-6 span6 p-0 d-flex align-items-center">
80                 <div class="bg-pulse-grey rounded-circle mr-2" style="height: 1rem; width: 1rem;"></div>
81                 <div class="bg-pulse-grey w-50" style="height: 1rem; margin: 0.5rem 0"></div>
82             </div>
83         </li>
84     </ul>
85     {{/list}}
86     {{#summary}}
87     <div class="course-summaryitem m-b-1 p-2">
88         <div class="d-flex">
89             <div class="d-flex">
90                 <div class="bg-pulse-grey rounded-circle m-0 p-0 m-r-1" style="height: 7rem; width: 7rem;"></div>
91             </div>
92             <div class="d-flex w-100 flex-column">
93                 <div class="bg-pulse-grey w-50 m-b-1" style="height: 1rem; margin: 0.5rem 0"></div>
94                 <div class="bg-pulse-grey w-100" style="height: 13rem"></div>
95             </div>
96         </div>
97     </div>
98     {{/summary}}
99 </div>