2 This file is part of Moodle - http://moodle.org/
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.
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.
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/>.
18 @template core_message/message_drawer_conversation_body
20 This template will render the body container for the conversation page in
23 Classes required for JS:
26 Data attributes required for JS:
27 * All data attributes are required
29 Context variables required for this template:
32 Example context (json):
38 class="view-conversation hidden h-100"
40 data-region="view-conversation"
41 data-user-id="{{loggedinuser.id}}"
42 data-midnight="{{loggedinuser.midnight}}"
43 style="overflow-y: auto; overflow-x: hidden"
45 <div class="position-relative h-100" data-region="content-container" style="overflow-y: auto; overflow-x: hidden">
46 <div class="p-3 text-center hidden" data-region="contact-request-sent-message-container">
47 <p class="m-0">{{#str}} contactrequestsent, core_message {{/str}}</p>
48 <p class="font-italic font-weight-light" data-region="text"></p>
50 <div class="content-message-container hidden h-100 px-2 pb-2 pt-0" data-region="content-message-container" role="log" style="overflow-y: auto; overflow-x: hidden">
51 <div class="hidden text-center p-3" data-region="more-messages-loading-icon-container">{{> core/loading }}</div>
53 <div class="p-4 w-100 h-100 hidden position-absolute" data-region="confirm-dialogue-container" style="top: 0; background: rgba(0,0,0,0.3);">
54 {{> core_message/message_drawer_view_conversation_body_confirm_dialogue }}
56 <div class="px-2 pb-2 pt-0" data-region="content-placeholder">
57 {{> core_message/message_drawer_view_conversation_body_placeholder }}