From a6a277f06ce39ba5de507924ec68217d325a4ac3 Mon Sep 17 00:00:00 2001 From: Ryan Wyllie Date: Tue, 22 Nov 2016 03:41:23 +0000 Subject: [PATCH] MDL-57075 message: notification popover see all link The "see all" link in the notification popover should link to the full notifications page similar to how the "see all" link in the message popover links to the messaging page. --- lib/templates/popover_region.mustache | 14 ++++++++------ message/output/popup/lib.php | 1 + 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/lib/templates/popover_region.mustache b/lib/templates/popover_region.mustache index 18bd954cc5b..753ab80cf10 100644 --- a/lib/templates/popover_region.mustache +++ b/lib/templates/popover_region.mustache @@ -64,12 +64,14 @@ {{> core/loading }} {{$anchor}} - - - + {{#urls.seeall}} + + + + {{/urls.seeall}} {{/anchor}} diff --git a/message/output/popup/lib.php b/message/output/popup/lib.php index a051f936f18..4e988f87614 100644 --- a/message/output/popup/lib.php +++ b/message/output/popup/lib.php @@ -61,6 +61,7 @@ function message_popup_render_navbar_output(\renderer_base $renderer) { $context = [ 'userid' => $USER->id, 'urls' => [ + 'seeall' => (new moodle_url('/message/output/popup/notifications.php'))->out(), 'preferences' => (new moodle_url('/message/notificationpreferences.php', ['userid' => $USER->id]))->out(), ], ];