Skip to content

Commit

Permalink
Merge branch 'MDL-64333_36' of git://github.com/markn86/moodle into M…
Browse files Browse the repository at this point in the history
…OODLE_36_STABLE
  • Loading branch information
junpataleta committed Mar 6, 2019
2 parents da40ba1 + 00ee615 commit f33bc18
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 6 deletions.
8 changes: 8 additions & 0 deletions message/lib.php
Expand Up @@ -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' => [
Expand All @@ -861,6 +866,9 @@ function core_message_standard_after_main_region_html() {
'settings' => [
'privacy' => $choices,
'entertosend' => $entertosend
],
'overview' => [
'notification' => $notification
]
]);
}
6 changes: 3 additions & 3 deletions message/templates/message_drawer_lazy_load_list.mustache
Expand Up @@ -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}}
Expand Down
Expand Up @@ -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}}
Expand Down
Expand Up @@ -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}}
Expand Down

0 comments on commit f33bc18

Please sign in to comment.