Merge branch 'MDL-64333_master' of git://github.com/markn86/moodle

This commit is contained in:
Jun Pataleta 2019-03-06 17:34:10 +08:00
commit 6c2fc65887
4 changed files with 18 additions and 7 deletions

View File

@ -720,6 +720,11 @@ class helper {
// Enter to send.
$entertosend = get_user_preferences('message_entertosend', $CFG->messagingdefaultpressenter, $USER);
$notification = '';
if (!get_user_preferences('core_message_migrate_data', false)) {
$notification = get_string('messagingdatahasnotbeenmigrated', 'message');
}
if ($isdrawer) {
$template = 'core_message/message_drawer';
$messageurl = new \moodle_url('/message/index.php');
@ -747,7 +752,8 @@ class helper {
'entertosend' => $entertosend
],
'overview' => [
'messageurl' => $messageurl
'messageurl' => $messageurl,
'notification' => $notification
],
'sendtouser' => false,
'conversationid' => false

View File

@ -40,10 +40,9 @@
data-user-id="{{loggedinuser.id}}"
{{$rootattributes}}{{/rootattributes}}
>
{{$notification}}{{/notification}}
<div class="hidden text-center p-2" data-region="empty-message-container">
<p class="text-muted mt-2">
{{$emptymessage}}{{/emptymessage}}
</p>
{{$emptymessage}}{{/emptymessage}}
</div>
<div class="hidden list-group" data-region="content-container">
{{$content}}{{/content}}

View File

@ -41,6 +41,13 @@
{{$placeholder}}
<div class="text-center py-2">{{> core/loading }}</div>
{{/placeholder}}
{{$notification}}
{{#overview.notification}}
<div class="text-center p-2">
<p class="text-center text-muted mt-2">{{.}}</p>
</div>
{{/overview.notification}}
{{/notification}}
{{$emptymessage}}
<p class="text-muted mt-2">{{#str}} noindividualconversations, core_message {{/str}}</p>
{{/emptymessage}}

View File

@ -46,10 +46,9 @@
>
<div class="onepix">
</div>
{{$notification}}{{/notification}}
<div class="hidden text-center p-2" data-region="empty-message-container">
<p class="text-muted mt-2">
{{$emptymessage}}{{/emptymessage}}
</p>
{{$emptymessage}}{{/emptymessage}}
</div>
<div class="hidden list-group" data-region="content-container">
{{$content}}{{/content}}