AutorÃa | Ultima modificación | Ver Log |
{{!
This file is part of Moodle - http://moodle.org/
Moodle is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Moodle is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
}}
{{!
@template core_message/message_drawer_conversation_body
This template will render the body container for the conversation page in
the message drawer.
Classes required for JS:
* none
Data attributes required for JS:
* All data attributes are required
Context variables required for this template:
*
Example context (json):
{}
}}
<div
class="view-conversation hidden h-100"
aria-hidden="true"
data-region="view-conversation"
data-user-id="{{loggedinuser.id}}"
data-midnight="{{loggedinuser.midnight}}"
data-message-poll-min="{{messagepollmin}}"
data-message-poll-max="{{messagepollmax}}"
data-message-poll-after-max="{{messagepollaftermax}}"
style="overflow-y: auto; overflow-x: hidden"
>
<div class="conversation-content-container position-relative h-100" data-region="content-container" style="overflow-y: auto; overflow-x: hidden">
<div class="rui-content-message-container hidden h-100" data-region="content-message-container" role="log" style="overflow-y: auto; overflow-x: hidden">
<div class="rui-additional-info sticky-top z-index-1 hidden" data-region="contact-request-sent-message-container">
<span class="badge-sq badge-info mb-1">{{#str}} contactrequestsent, core_message {{/str}}</span>
<span class="badge-sq badge-light mr-3" data-region="text"></span>
</div>
<div class="mt-3 mx-3 p-3 alert alert-warning hidden" data-region="self-conversation-message-container">
<h4 class="d-flex align-items-center">
<svg class="mr-2" width="22" height="22" fill="none" viewBox="0 0 24 24">
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5.75 11.75C5.75 11.1977 6.19772 10.75 6.75 10.75H17.25C17.8023 10.75 18.25 11.1977 18.25 11.75V17.25C18.25 18.3546 17.3546 19.25 16.25 19.25H7.75C6.64543 19.25 5.75 18.3546 5.75 17.25V11.75Z"></path>
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7.75 10.5V10.3427C7.75 8.78147 7.65607 7.04125 8.74646 5.9239C9.36829 5.2867 10.3745 4.75 12 4.75C13.6255 4.75 14.6317 5.2867 15.2535 5.9239C16.3439 7.04125 16.25 8.78147 16.25 10.3427V10.5"></path>
</svg>
<span>{{#str}} selfconversation, core_message {{/str}}</span>
</h4>
<p class="ml-4" data-region="text" style="margin-left: 32px;">{{#str}} selfconversationdefaultmessage, core_message {{/str}}</p>
</div>
<div class="hidden text-center p-3" data-region="more-messages-loading-icon-container">{{> core/loading }}</div>
</div>
<div class="p-4 w-100 h-100 hidden position-absolute" data-region="confirm-dialogue-container" style="top: 0; z-index: 3; background: rgba(0, 0, 0, 0.3);">
{{> core_message/message_drawer_view_conversation_body_confirm_dialogue }}
</div>
<div class="px-2 pb-2 pt-0" data-region="content-placeholder">
{{> core_message/message_drawer_view_conversation_body_placeholder }}
</div>
</div>
</div>