1441 |
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 |
{{!
|
|
|
18 |
@template core_courseformat/local/overview/activityname
|
|
|
19 |
|
|
|
20 |
The course overview activity name cell.
|
|
|
21 |
|
|
|
22 |
Example context (json):
|
|
|
23 |
{
|
|
|
24 |
"activityname": "Activity name",
|
|
|
25 |
"activityurl": "http://moodle.com",
|
|
|
26 |
"sectiontitle": "Section title",
|
|
|
27 |
"visible": true,
|
|
|
28 |
"stealth": false
|
|
|
29 |
}
|
|
|
30 |
}}
|
|
|
31 |
<div class="d-flex flex-column">
|
|
|
32 |
<div class="fw-bold">
|
|
|
33 |
<a href="{{activityurl}}" class="activityname">{{{activityname}}}</a>
|
|
|
34 |
</div>
|
|
|
35 |
{{#sectiontitle}}
|
|
|
36 |
<div>
|
|
|
37 |
{{sectiontitle}}
|
|
|
38 |
</div>
|
|
|
39 |
{{/sectiontitle}}
|
|
|
40 |
<div class="ms-2">
|
|
|
41 |
{{#hidden}}
|
|
|
42 |
<span class="badge rounded-pill text-bg-secondary fw-normal">
|
|
|
43 |
{{#pix}}i/show, core{{/pix}}
|
|
|
44 |
{{#str}}hiddenfromstudents{{/str}}
|
|
|
45 |
</span>
|
|
|
46 |
{{/hidden}}
|
|
|
47 |
{{#stealth}}
|
|
|
48 |
<span class="badge rounded-pill text-bg-secondary fw-normal">
|
|
|
49 |
{{#pix}}t/stealth, core{{/pix}}
|
|
|
50 |
{{#str}}hiddenoncoursepage{{/str}}
|
|
|
51 |
</span>
|
|
|
52 |
{{/stealth}}
|
|
|
53 |
</div>
|
|
|
54 |
</div>
|