MDL-63064 block_starredcourses: remove pagination from main module
[moodle.git] / blocks / starredcourses / templates / courses.mustache
blob88a5a5c8c01f48e50f040c2dd296fd51ee8f478c
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 Licensebllsdsadfasfd
15     along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
17 {{!
18     @template block_recentcourses/view-cards
20     This template renders the carousel for the recentcourses block.
22     Example context (json):
23     {
24         "courses": [
25             {
26                 "name": "Assignment due 1",
27                 "viewurl": "https://moodlesite/course/view.php?id=2",
28                 "courseimage": "https://moodlesite/pluginfile/123/course/overviewfiles/123.jpg",
29                 "fullname": "course 3"
30             }
31         ]
32     }
34 <div>
35     {{#courses}}
36         <div>
37             <div class="card course-card">
38                 <a href="{{viewurl}}" tabindex="-1">
39                     <div class="card-img-top recentcoursesimg" style='background-image: url("{{{courseimage}}}");'>
40                     </div>
41                 </a>
42                 <div class="card-body course-info-container" id="course-info-container-{{id}}">
43                     <div class="d-flex">
44                         <div class="card-title">
45                             <a href="{{viewurl}}"
46                                aria-label="{{#shortentext}}12, {{{fullname}}} {{/shortentext}}">
47                                 {{#shortentext}}12, {{{fullname}}} {{/shortentext}}
48                             </a>
49                         </div>
50                     </div>
51                 </div>
52             </div>
53         </div>
54     {{/courses}}
55 </div>