diff --git a/mod/notifications.php b/mod/notifications.php index f327c2fe2..09f89e88a 100644 --- a/mod/notifications.php +++ b/mod/notifications.php @@ -81,6 +81,7 @@ function notifications_content(&$a) { ); if (count($r) > 0) { + $notifications_available =1; foreach ($r as $it) { $notif_content .= replace_macros($not_tpl,array( '$item_link' => $a->get_baseurl(true).'/notify/view/'. $it['id'], @@ -95,7 +96,9 @@ function notifications_content(&$a) { $o .= replace_macros($notif_tpl,array( '$notif_header' => t('System Notifications'), + '$notif_link_mark_seen' => t('Mark all system notifications seen'), '$notif_content' => $notif_content, + '$notifications_available' => $notifications_available, )); return $o; diff --git a/view/tpl/notifications.tpl b/view/tpl/notifications.tpl index 3015de504..ae87c8ec8 100755 --- a/view/tpl/notifications.tpl +++ b/view/tpl/notifications.tpl @@ -1,5 +1,7 @@

{{$notif_header}}

- +{{if $notifications_available}} +{{$notif_link_mark_seen}} +{{/if}}
{{$notif_content}}