d27a1b8593d29c2b083fc41c6d72ac05c7b04a30
[moodle.git] / message / templates / message_area_messages_area.mustache
1 {{!
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/>.
16 }}
17 {{#otheruserid}}
18 <div class="messages-header">
19     <div class="view-toggle btn-container">
20         <button class="btn btn-link" data-action="show-contacts">&lt; {{#str}} messages, message {{/str}}</button>
21     </div>
22     <div class="delete-all btn-container">
23         <button class="btn btn-link" data-action="delete-all-messages">{{#str}} deleteall {{/str}}</button>
24     </div>
25     <div class="name-container">
26         <div class="name">
27             <button class="btn btn-link" data-action="view-contact-profile" data-userid="{{otheruserid}}">{{otheruserfullname}}</button>
28         </div>
29         <div class="status {{#isonline}}online{{/isonline}}">
30             <span class="offline-text">{{#str}} offline, message {{/str}}</span>
31             <span class="online-text">{{#str}} online, message {{/str}}</span>
32         </div>
33     </div>
34     <div class="delete-instructions">
35         {{#str}} selectmessagestodelete, message {{/str}}
36     </div>
37     <div class="actions" data-region="messages-header-actions">
38         <button class="btn btn-link messages-delete" data-action="start-delete-messages">{{#str}}edit{{/str}}</button>
39         <button class="btn btn-link cancel-messages-delete" data-action="cancel-delete-messages">{{#str}}cancel{{/str}}</button>
40     </div>
41 </div>
42 {{/otheruserid}}
43 {{#contactsfirst}}
44 <div class="messages-header">
45     <div class="name-container">
46         <div class="name">
47             {{#str}}newmessagesearch, message{{/str}}
48         </div>
49     </div>
50 </div>
51 {{/contactsfirst}}
52 <div class="messages" data-region="messages" data-userid="{{otheruserid}}">
53     {{> core_message/message_area_messages }}
54 </div>
55 {{#otheruserid}}
56 <div class="response" data-region="response">
57     {{#iscurrentuser}}
58         <div class="message-box">
59             {{> core_message/message_area_response }}
60         </div>
61     {{/iscurrentuser}}
62     <div class="delete-confirmation">
63         <button class="btn btn-link confirm" data-action="delete-messages">{{#str}} deleteselectedmessages, message {{/str}}</button>
64     </div>
65 </div>
66 {{/otheruserid}}