MDL-68714 clilib: Allow cli processes to set a process title suffix
[moodle.git] / message / templates / message_drawer_view_conversation_header_content_type_self.mustache
blob9d4c1c100a68ff6d4ec9fd5f545f46ab343afbb7
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_header_content_type_self
20     This template will render the header content of the conversation page 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     * urls The URLs for the popover
31     * name
32     * subname
33     * imageurl
34     * isfavourite
35     * showonlinestatus
38     Example context (json):
39     {}
43 <div class="d-flex align-items-center">
44     <div class="align-self-stretch" >
45         <a class="h-100 mr-2 d-flex align-items-center" href="#" data-route-back>
46             {{> core_message/message_drawer_icon_back }}
47         </a>
48     </div>
49     <div class="d-flex text-truncate">
50         {{#imageurl}}
51             <div class="d-flex align-items-center">
52                 <img
53                     class="rounded-circle"
54                     src="{{{.}}}"
55                     alt="{{name}}"
56                     aria-hidden="true"
57                     style="height: 38px"
58                 >
59             </div>
60         {{/imageurl}}
61         <div class="w-100 text-truncate ml-2">
62             <div class="d-flex">
63                 <strong class="m-0 text-truncate">{{name}}</strong>
64                 <span class="{{^isfavourite}}hidden{{/isfavourite}} ml-1 text-primary" data-region="favourite-icon-container">
65                     {{#pix}} i/star-rating, core {{/pix}}
66                 </span>
67             </div>
68             {{#showonlinestatus}}
69                 <p class="m-0 font-weight-light text-truncate">
70                     {{#str}} loggedin, core_message {{/str}}
71                 </p>
72             {{/showonlinestatus}}
73         </div>
74     </div>
75     <div class="ml-auto dropdown">
76         <button class="btn btn-link btn-icon icon-size-3" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
77             {{#pix}} i/moremenu, core {{/pix}}
78         </button>
79         <div class="dropdown-menu pull-right">
80             <a class="dropdown-item {{#isfavourite}}hidden{{/isfavourite}} {{^showfavourite}}hidden{{/showfavourite}}" href="#" data-action="confirm-favourite">
81                 {{#str}} addtofavourites, core_message {{/str}}
82             </a>
83             <a class="dropdown-item {{^isfavourite}}hidden{{/isfavourite}} {{^showfavourite}}hidden{{/showfavourite}}" href="#" data-action="confirm-unfavourite">
84                 {{#str}} removefromfavourites, core_message {{/str}}
85             </a>
86             <a class="dropdown-item" href="#" data-action="request-delete-conversation">
87                 {{#str}} deleteconversation, core_message {{/str}}
88             </a>
89         </div>
90     </div>
91 </div>