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_message/message_drawer_view_overview_section_messages
|
|
|
19 |
|
|
|
20 |
This template will render the messages section of the overview page
|
|
|
21 |
in the message drawer.
|
|
|
22 |
|
|
|
23 |
Classes required for JS:
|
|
|
24 |
* none
|
|
|
25 |
|
|
|
26 |
Data attributes required for JS:
|
|
|
27 |
* All data attributes are required
|
|
|
28 |
|
|
|
29 |
Context variables required for this template:
|
|
|
30 |
* userid The logged in user id
|
|
|
31 |
* urls The URLs for the popover
|
|
|
32 |
|
|
|
33 |
Example context (json):
|
|
|
34 |
{}
|
|
|
35 |
|
|
|
36 |
}}
|
|
|
37 |
|
|
|
38 |
{{< core_message/message_drawer_view_overview_section }}
|
|
|
39 |
{{$region}}view-overview-messages{{/region}}
|
|
|
40 |
{{$title}}{{#str}} individualconversations, core_message {{/str}}{{/title}}
|
|
|
41 |
{{$placeholder}}
|
|
|
42 |
<div class="text-center py-2">{{> core/loading }}</div>
|
|
|
43 |
{{/placeholder}}
|
|
|
44 |
{{$notification}}
|
|
|
45 |
{{#overview.notification}}
|
|
|
46 |
<div class="text-center p-2">
|
|
|
47 |
<p class="text-center text-muted mt-2">{{.}}</p>
|
|
|
48 |
</div>
|
|
|
49 |
{{/overview.notification}}
|
|
|
50 |
{{/notification}}
|
|
|
51 |
{{$emptymessage}}
|
|
|
52 |
<p class="text-muted mt-2">{{#str}} noindividualconversations, core_message {{/str}}</p>
|
|
|
53 |
{{/emptymessage}}
|
|
|
54 |
{{/ core_message/message_drawer_view_overview_section }}
|