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 core_courseformat/local/content/cm/groupmode_info
|
|
|
19 |
|
|
|
20 |
Container to display group mode information on the course page.
|
|
|
21 |
|
|
|
22 |
Example context (json):
|
|
|
23 |
{
|
|
|
24 |
"activityname": "Course announcements",
|
|
|
25 |
"groupicon": "i/groupv",
|
|
|
26 |
"groupalt": "Visible groups"
|
|
|
27 |
}
|
|
|
28 |
}}
|
|
|
29 |
{{#isInteractive}}
|
|
|
30 |
{{#dropwdown}}
|
|
|
31 |
{{< core/local/dropdown/status}}
|
|
|
32 |
{{$ buttonclasses }}
|
|
|
33 |
{{#autohide}} v-parent-focus {{/autohide}}
|
|
|
34 |
groupmode-information btn px-2 btn-xs btn-secondary
|
|
|
35 |
{{/ buttonclasses }}
|
|
|
36 |
{{$ buttoncontent }}
|
|
|
37 |
{{{groupicon}}}
|
|
|
38 |
<span class="groupmode-icon-info d-none d-md-block">{{groupalt}}</span>
|
|
|
39 |
{{/ buttoncontent }}
|
|
|
40 |
{{/ core/local/dropdown/status}}
|
|
|
41 |
{{/dropwdown}}
|
|
|
42 |
{{/isInteractive}}
|
|
|
43 |
{{^isInteractive}}
|
|
|
44 |
<div
|
|
|
45 |
data-region="groupmode-information"
|
|
|
46 |
data-activityname="{{activityname}}"
|
|
|
47 |
class="groupmode-information d-flex align-items-center justify-content-center icon-no-margin"
|
|
|
48 |
>
|
|
|
49 |
<span class="badge badge-xs badge-light">
|
|
|
50 |
{{#groupicon}}{{{groupicon}}}{{/groupicon}}
|
|
|
51 |
{{#groupalt}}
|
|
|
52 |
<div class="groupmode-icon-info ml-2">{{groupalt}}</div>
|
|
|
53 |
{{/groupalt}}
|
|
|
54 |
</span>
|
|
|
55 |
</div>
|
|
|
56 |
{{/isInteractive}}
|