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/>.
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:
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
38 Example context (json):
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 }}
49 <div class="d-flex text-truncate">
51 <div class="d-flex align-items-center">
53 class="rounded-circle"
61 <div class="w-100 text-truncate ml-2">
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}}
69 <p class="m-0 font-weight-light text-truncate">
70 {{#str}} loggedin, core_message {{/str}}
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}}
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}}
83 <a class="dropdown-item {{^isfavourite}}hidden{{/isfavourite}} {{^showfavourite}}hidden{{/showfavourite}}" href="#" data-action="confirm-unfavourite">
84 {{#str}} removefromfavourites, core_message {{/str}}
86 <a class="dropdown-item" href="#" data-action="request-delete-conversation">
87 {{#str}} deleteconversation, core_message {{/str}}