]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/templates/notifications.tpl
Merge pull request #3007 from annando/1607-performance
[friendica.git] / view / theme / frio / templates / notifications.tpl
index 3729e6f8c21baa369f0ec568f84004737ac56876..126001e93329a1f60ad3ea4d91eba3302766092c 100644 (file)
@@ -6,7 +6,7 @@
 
        <div class="notif-network-wrapper">
                {{* The "show ignored" link *}}
-               {{if $notif_ignored_lnk}}{{$notif_ignored_lnk}}{{/if}}
+               {{if $notif_show_lnk}}<a href="{{$notif_show_lnk.href}}" id="notifications-show-hide-link">{{$notif_show_lnk.text}}</a>{{/if}}
 
                {{* The notifications *}}
                {{if $notif_content}}
                <div class="notif_nocontent">{{$notif_nocontent}}</div>
                {{/if}}
        </div>
+
+       {{* The pager *}}
+       {{$notif_paginate}}
 </div>
+
+{{* Since only the DIV's inside the notification-list are marked with the class "unseen",
+we need some js to transfer this class to the parent li list-elements *}}
+<script>
+$(document).ready(function(){
+       if( $(".notif-item").hasClass("unseen")) {
+               $(".notif-item.unseen").parent("li").addClass("unseen");
+       }
+});
+</script>
\ No newline at end of file