mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 00:42:54 +02:00
Merge branch 'MDL-64333_master' of git://github.com/markn86/moodle
This commit is contained in:
commit
6c2fc65887
@ -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
|
||||
|
@ -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}}
|
||||
|
@ -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}}
|
||||
|
@ -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}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user