mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 04:15:12 +00:00
Merge pull request #442 from cvogeley/master
system notifications mark seen link
This commit is contained in:
commit
fc5ae78079
2 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<h1>{{$notif_header}}</h1>
|
||||
|
||||
{{if $notifications_available}}
|
||||
<a href="#" onclick="markRead('notify');">{{$notif_link_mark_seen}}</a>
|
||||
{{/if}}
|
||||
<div class="notif-network-wrapper">
|
||||
{{$notif_content}}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue