forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.mustache
68 lines (59 loc) · 2.19 KB
/
index.mustache
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{{!
This file is part of Moodle - http://moodle.org/
Moodle is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Moodle is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
}}
{{!
@template core_tag/index
Displays items in one tag area tagged with the specific tag
Classes required for JS:
* tagarea
Data attributes required for JS:
* data-quickload
* data-ta
Context variables required for this template:
* none
Example context (json):
{
"component" : "core",
"itemtype" : "course",
"nextpageurl" : "http://moodle.org",
"prevpageurl" : "http://moodle.org",
"exclusiveurl" : "http://moodle.org",
"exclusivetext" : "Show all Courses tagged with \"Sometag\"",
"title" : "Courses tagged with \"Sometag\"",
"content": "Course1, Course2",
"hascontent": 1,
"anchor": "core_course",
"ta": 2,
"tagid": 15
}
}}
{{#hascontent}}
<div class="box generalbox tagarea" id="tagarea-{{component}}-{{itemtype}}" data-ta="{{ta}}">
<a name="{{anchor}}"></a>
<h3>{{{title}}}</h3>
<div class="taggeditems">
{{{content}}}
</div>
<div class="controls controls-bottom">
{{#prevpageurl}}
<a class="gotopage prevpage" href="{{prevpageurl}}" data-quickload="1">{{#str}}prevpage,tag{{/str}}</a>
{{/prevpageurl}}
{{#nextpageurl}}
<a class="gotopage nextpage" href="{{nextpageurl}}" data-quickload="1">{{#str}}nextpage,tag{{/str}}</a>
{{/nextpageurl}}
{{#exclusiveurl}}
<a class="exclusivemode" href="{{exclusiveurl}}">{{exclusivetext}}</a>
{{/exclusiveurl}}
</div>
</div>
{{/hascontent}}