Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
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_myoverview/courses-view
19
 
20
    This template renders the courses view for the myoverview block.
21
 
22
    Example context (json):
23
    {
24
        "nocoursesimg": "https://moodlesite/theme/image.php/boost/block_myoverview/1535727318/courses",
25
        "newcourseurl": "https://moodlesite/course/edit.php",
26
        "grouping": "all",
27
        "sort": "fullname",
28
        "view": "card"
29
    }
30
}}
31
<div id="courses-view-{{uniqid}}"
32
    data-region="courses-view"
33
    data-display="{{view}}"
34
    data-grouping="{{grouping}}"
35
    data-customfieldname="{{customfieldname}}"
36
    data-customfieldvalue="{{customfieldvalue}}"
37
    data-sort="{{sort}}"
38
    data-prev-display="{{view}}"
39
    data-paging="{{paging}}"
40
    data-nocoursesimg="{{nocoursesimg}}"
41
    data-totalcoursecount="{{totalcoursecount}}"
42
    data-displaycategories="{{displaycategories}}"
43
    data-newcourseurl="{{newcourseurl}}">
44
    <div data-region="course-view-content">
45
        {{> block_myoverview/placeholders }}
46
    </div>
47
</div>