Merge branch 'MDL-67119-39' of git://github.com/aanabit/moodle into MOODLE_39_STABLE
[moodle.git] / message / templates / message_drawer_view_conversation_header_content_type_private_no_controls.mustache
blob95eaac657d442a79d29fcba8f9b385a317e7cce7
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/>.
17 {{!
18     @template core_message/message_drawer_view_conversation_heeader_content_type_private_no_controls
20     This template will render the header content of the conversation page without controls in
21     the message message drawer.
23     Classes required for JS:
24     * none
26     Data attributes required for JS:
27     * All data attributes are required
29     Context variables required for this template:
30     * userid The logged in user id
31     * urls The URLs for the popover
33     Example context (json):
34     {}
38 <div class="d-flex align-items-center">
39     {{#showrouteback}}
40         <div class="align-self-stretch" >
41             <a class="h-100 mr-2 d-flex align-items-center" href="#" data-route-back role="button">
42                 {{> core_message/message_drawer_icon_back }}
43             </a>
44         </div>
45     {{/showrouteback}}
46     <div class="d-flex text-truncate">
47         {{#imageurl}}
48             <div class="d-flex align-items-center">
49                 <img
50                     class="rounded-circle"
51                     src="{{{.}}}"
52                     alt="{{name}}"
53                     aria-hidden="true"
54                     style="height: 38px"
55                 >
56             </div>
57         {{/imageurl}}
58         <div class="w-100 text-truncate ml-2">
59             <div class="d-flex">
60                 <strong class="m-0 text-truncate">{{name}}</strong>
61                 <span class="{{^isfavourite}}hidden{{/isfavourite}} ml-1 text-primary" data-region="favourite-icon-container"
62                 aria-label="{{#str}} favourites, core {{/str}}">
63                     {{#pix}} i/star-rating, core {{/pix}}
64                 </span>
65                 <span class="{{^ismuted}}hidden{{/ismuted}} ml-1 text-primary" data-region="muted-icon-container"
66                 aria-label="{{#str}} mutedconversation, core_message {{/str}}">
67                     {{#pix}} i/muted, core {{/pix}}
68                 </span>
69             </div>
70             {{#showonlinestatus}}
71                 <p class="m-0 font-weight-light text-truncate">
72                     {{#isonline}}{{#str}} loggedin, core_message {{/str}}{{/isonline}}
73                     {{^isonline}}{{#str}} loggedoff, core_message {{/str}}{{/isonline}}
74                 </p>
75             {{/showonlinestatus}}
76         </div>
77     </div>
78 </div>