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_conversation_body
|
|
|
19 |
|
|
|
20 |
This template will render the body container for the conversation page in
|
|
|
21 |
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 |
*
|
|
|
31 |
|
|
|
32 |
Example context (json):
|
|
|
33 |
{}
|
|
|
34 |
|
|
|
35 |
}}
|
|
|
36 |
|
|
|
37 |
<div
|
|
|
38 |
class="view-conversation hidden h-100"
|
|
|
39 |
aria-hidden="true"
|
|
|
40 |
data-region="view-conversation"
|
|
|
41 |
data-user-id="{{loggedinuser.id}}"
|
|
|
42 |
data-midnight="{{loggedinuser.midnight}}"
|
|
|
43 |
data-message-poll-min="{{messagepollmin}}"
|
|
|
44 |
data-message-poll-max="{{messagepollmax}}"
|
|
|
45 |
data-message-poll-after-max="{{messagepollaftermax}}"
|
|
|
46 |
style="overflow-y: auto; overflow-x: hidden"
|
|
|
47 |
>
|
|
|
48 |
<div class="position-relative h-100" data-region="content-container" style="overflow-y: auto; overflow-x: hidden">
|
|
|
49 |
<div class="content-message-container hidden h-100 px-2 pt-0" data-region="content-message-container" role="log" style="overflow-y: auto; overflow-x: hidden">
|
|
|
50 |
<div class="py-3 sticky-top z-index-1 border-bottom text-center hidden" data-region="contact-request-sent-message-container">
|
|
|
51 |
<p class="m-0">{{#str}} contactrequestsent, core_message {{/str}}</p>
|
|
|
52 |
<p class="font-italic font-weight-light" data-region="text"></p>
|
|
|
53 |
</div>
|
|
|
54 |
<div class="p-3 text-center hidden" data-region="self-conversation-message-container">
|
|
|
55 |
<p class="m-0">{{#str}} selfconversation, core_message {{/str}}</p>
|
|
|
56 |
<p class="font-italic font-weight-light" data-region="text">{{#str}} selfconversationdefaultmessage, core_message {{/str}}</p>
|
|
|
57 |
</div>
|
|
|
58 |
<div class="hidden text-center p-3" data-region="more-messages-loading-icon-container">{{> core/loading }}</div>
|
|
|
59 |
</div>
|
|
|
60 |
<div class="p-4 w-100 h-100 hidden position-absolute z-index-1" data-region="confirm-dialogue-container" style="top: 0; background: rgba(0,0,0,0.3);">
|
|
|
61 |
{{> core_message/message_drawer_view_conversation_body_confirm_dialogue }}
|
|
|
62 |
</div>
|
|
|
63 |
<div class="px-2 pb-2 pt-0" data-region="content-placeholder">
|
|
|
64 |
{{> core_message/message_drawer_view_conversation_body_placeholder }}
|
|
|
65 |
</div>
|
|
|
66 |
</div>
|
|
|
67 |
</div>
|