{{!
This file is part of Moodle - http://moodle.org/
Moodle is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Moodle is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Moodle. If not, see .
}}
{{!
@template message_output_popup/message_content_item
This template will render the message content item for the
navigation bar message menu.
Classes required for JS:
* none
Data attributes required for JS:
* All data attributes are required
Context variables required for this template:
* isread If the message is read or not
* contexturl The link to the message on the messages page
* fullname The name of the sender
* profileimageurl The URL for the sender's profile image
* sentfromcurrentuser Was the last message sent by the current user
* lastmessage The message text
* unreadcount The number of unread messages in this conversation
Example context (json):
{
"isread": true,
"contexturl": "http://www.moodle.com",
"fullname": "Some Person",
"profileimageurl": "http://www.moodle.com",
"sentfromcurrentuser": false,
"lastmessage": "Hello, this is Some Person!",
"unreadcount": 1
}
}}