MDL-61778 message: Renamed online status icon and replaced Boost icon
[moodle.git] / message / templates / message_area_contact.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 <div class="contact {{#selected}}selected{{/selected}} {{#lastmessage}}{{^isread}}unread{{/isread}}{{/lastmessage}}"
18      data-action="view-contact-msg"
19      data-userid="{{userid}}" data-messageid="{{#messageid}}{{.}}{{isread}}{{/messageid}}" data-region="contact" role="button"
20      aria-pressed="{{#selected}}true{{/selected}}{{^selected}}false{{/selected}}" tabindex="0">
21     <div class="picture">
22         <img src="{{profileimageurl}}" alt="" />
23     </div>
24     <div class="information">
25         <div class="name">
26             {{fullname}}
27             {{#showonlinestatus}}
28             <div {{#isonline}}class="d-inline status online"{{/isonline}}{{^isonline}}class="hidden"{{/isonline}}>
29                 <span class="online-text" data-region="contact-icon-online">
30                     {{#pix}} t/online, core, {{#str}} online, message {{/str}} {{/pix}}
31                 </span>
32             </div>
33             {{/showonlinestatus}}
34             <span {{^isblocked}}class="hidden"{{/isblocked}} data-region="contact-icon-blocked">
35                 {{#pix}} t/block, core, {{#str}} contactblocked, message {{/str}} {{/pix}}
36             </span>
37         </div>
38         <p class="lastmessage" data-region="last-message-area">
39             <span data-region="last-message-user">
40                 {{#sentfromcurrentuser}}{{#str}}you, message{{/str}}{{/sentfromcurrentuser}}
41             </span>
42             <span data-region="last-message-text">
43                 {{#lastmessage}}
44                     {{.}}
45                 {{/lastmessage}}
46             </span>
47         </p>
48     </div>
49     <div class="unread-count-container">
50         <span data-region="unread-count" class="badge badge-important">{{unreadcount}}</span>
51     </div>
52 </div>