Add link to system notifications page
to mark notifications seen
This commit is contained in:
parent
b2e0b6f11d
commit
f7c77c7821
@ -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'],
|
||||
@ -97,6 +98,7 @@ function notifications_content(&$a) {
|
||||
'$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;
|
||||
|
@ -1,5 +1,7 @@
|
||||
<h1>{{$notif_header}}</h1>
|
||||
<a href="#" onclick="markRead('notify'); return false;">{{$notif_link_mark_seen}}</a>
|
||||
{{if $notifications_available}}
|
||||
<a href="#" onclick="markRead('notify');">{{$notif_link_mark_seen}}</a>
|
||||
{{/if}}
|
||||
<div class="notif-network-wrapper">
|
||||
{{$notif_content}}
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user