Merge branch 'MDL-64333_36' of git://github.com/markn86/moodle into MOODLE_36_STABLE
This commit is contained in:
@@ -844,6 +844,11 @@ function core_message_standard_after_main_region_html() {
|
||||
// Enter to send.
|
||||
$entertosend = get_user_preferences('message_entertosend', false, $USER);
|
||||
|
||||
$notification = '';
|
||||
if (!get_user_preferences('core_message_migrate_data', false)) {
|
||||
$notification = get_string('messagingdatahasnotbeenmigrated', 'message');
|
||||
}
|
||||
|
||||
return $renderer->render_from_template('core_message/message_drawer', [
|
||||
'contactrequestcount' => $requestcount,
|
||||
'loggedinuser' => [
|
||||
@@ -861,6 +866,9 @@ function core_message_standard_after_main_region_html() {
|
||||
'settings' => [
|
||||
'privacy' => $choices,
|
||||
'entertosend' => $entertosend
|
||||
],
|
||||
'overview' => [
|
||||
'notification' => $notification
|
||||
]
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -40,10 +40,10 @@
|
||||
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}}
|
||||
|
||||
Reference in New Issue
Block a user