Commit | Line | Data |
---|---|---|
5005d8cf RW |
1 | {{! |
2 | This file is part of Moodle - http://moodle.org/ | |
3 | ||
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. | |
8 | ||
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. | |
13 | ||
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 | {{! | |
18 | @template core_message/message_drawer_view_conversation_heeader_content | |
19 | ||
20 | This template will render the header content of the conversation page in | |
21 | the message message drawer. | |
22 | ||
23 | Classes required for JS: | |
24 | * none | |
25 | ||
26 | Data attributes required for JS: | |
27 | * All data attributes are required | |
28 | ||
29 | Context variables required for this template: | |
30 | * userid The logged in user id | |
31 | * urls The URLs for the popover | |
32 | ||
33 | Example context (json): | |
34 | {} | |
35 | ||
36 | }} | |
37 | ||
2809ab7b RW |
38 | <div class="d-flex flex-column"> |
39 | <div class="d-flex align-items-center"> | |
7cbea160 BB |
40 | {{#showrouteback}} |
41 | <div class="align-self-stretch" > | |
42 | <a class="h-100 mr-2 d-flex align-items-center" href="#" data-route-back role="button"> | |
43 | {{> core_message/message_drawer_icon_back }} | |
44 | </a> | |
45 | </div> | |
46 | {{/showrouteback}} | |
2809ab7b | 47 | <div class="d-flex text-truncate"> |
c0d2558c | 48 | <a class="d-flex text-truncate text-decoration-none" href="#" data-action="view-group-info" role="button"> |
2809ab7b | 49 | {{#imageurl}} |
f3194f39 BB |
50 | <img |
51 | class="rounded-circle" | |
52 | src="{{{.}}}" | |
53 | alt="{{name}}" | |
54 | aria-hidden="true" | |
55 | style="height: 38px" | |
56 | > | |
2809ab7b RW |
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> | |
67855b3b SA |
61 | <span class="{{^isfavourite}}hidden{{/isfavourite}} ml-1 text-primary" |
62 | data-region="favourite-icon-container" aria-label="{{#str}} favourites, core {{/str}}"> | |
2809ab7b RW |
63 | {{#pix}} i/star-rating, core {{/pix}} |
64 | </span> | |
bd038cc1 MN |
65 | <span class="{{^ismuted}}hidden{{/ismuted}} ml-1 text-primary" data-region="muted-icon-container"> |
66 | {{#pix}} i/muted, core {{/pix}} | |
67 | </span> | |
2809ab7b RW |
68 | </div> |
69 | <p class="m-0 text-truncate">{{subname}}</p> | |
70 | </div> | |
5005d8cf RW |
71 | </a> |
72 | </div> | |
2809ab7b RW |
73 | <div class="ml-auto dropdown"> |
74 | <button class="btn btn-link btn-icon icon-size-3" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> | |
75 | {{#pix}} i/moremenu, core {{/pix}} | |
76 | </button> | |
5db1ce53 | 77 | <div class="dropdown-menu float-right"> |
2809ab7b RW |
78 | <a class="dropdown-item" href="#" data-action="view-group-info"> |
79 | {{#str}} groupinfo, core_message {{/str}} | |
80 | </a> | |
81 | <a class="dropdown-item {{#isfavourite}}hidden{{/isfavourite}}" href="#" data-action="confirm-favourite"> | |
82 | {{#str}} addtofavourites, core_message {{/str}} | |
83 | </a> | |
84 | <a class="dropdown-item {{^isfavourite}}hidden{{/isfavourite}}" href="#" data-action="confirm-unfavourite"> | |
85 | {{#str}} removefromfavourites, core_message {{/str}} | |
86 | </a> | |
bd038cc1 MN |
87 | <a class="dropdown-item {{#ismuted}}hidden{{/ismuted}}" href="#" data-action="confirm-mute"> |
88 | {{#str}} muteconversation, core_message {{/str}} | |
89 | </a> | |
90 | <a class="dropdown-item {{^ismuted}}hidden{{/ismuted}}" href="#" data-action="confirm-unmute"> | |
91 | {{#str}} unmuteconversation, core_message {{/str}} | |
92 | </a> | |
2809ab7b RW |
93 | </div> |
94 | </div> | |
95 | </div> | |
96 | <div class="d-flex"> | |
97 | <!-- These are just placeholder elements to align the text below correctly with the name text above --> | |
fcf393a1 RW |
98 | {{#showrouteback}} |
99 | <div class="mr-2 icon" aria-hidden="true"></div> | |
100 | {{/showrouteback}} | |
2809ab7b RW |
101 | {{#imageurl}}<div style="width: 38px" aria-hidden="true"></div>{{/imageurl}} |
102 | <!-- End placeholders --> | |
c0d2558c | 103 | <a class="text-decoration-none line-height-3 ml-2" href="#" data-action="view-group-info" role="button"> |
2809ab7b RW |
104 | <small class="m-0 text-muted text-truncate"> |
105 | {{#str}} numparticipants, core_message, {{totalmembercount}} {{/str}} | |
106 | </small> | |
107 | </a> | |
5005d8cf RW |
108 | </div> |
109 | </div> |