]> git.mxchange.org Git - friendica.git/blob - view/theme/frio/templates/notifications.tpl
Merge branch 'master' of github.com:annando/friendica
[friendica.git] / view / theme / frio / templates / notifications.tpl
1
2 <div class="generic-page-wrapper">
3         {{include file="section_title.tpl" title=$notif_header}}
4
5         {{if $tabs }}{{include file="common_tabs.tpl"}}{{/if}}
6
7         <div class="notif-network-wrapper">
8                 {{* The "show ignored" link *}}
9                 {{if $notif_show_lnk}}<a href="{{$notif_show_lnk.href}}" id="notifications-show-hide-link">{{$notif_show_lnk.text}}</a>{{/if}}
10
11                 {{* The notifications *}}
12                 {{if $notif_content}}
13                 <ul class="notif-network-list media-list">
14                 {{foreach $notif_content as $notification}}
15                         <li>{{$notification}}</li>
16                 {{/foreach}}
17                 </ul>
18                 {{/if}}
19
20                 {{* If no notifications messages available *}}
21                 {{if $notif_nocontent}}
22                 <div class="notif_nocontent">{{$notif_nocontent}}</div>
23                 {{/if}}
24         </div>
25
26         {{* The pager *}}
27         {{$notif_paginate}}
28 </div>
29
30 {{* Since only the DIV's inside the notification-list are marked with the class "unseen",
31 we need some js to transfer this class to the parent li list-elements *}}
32 <script>
33 $(document).ready(function(){
34         if( $(".notif-item").hasClass("unseen")) {
35                 $(".notif-item.unseen").parent("li").addClass("unseen");
36         }
37 });
38 </script>