<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 type="text/javascript">
+$(document).ready(function(){
+ if( $(".notif-item").hasClass("unseen")) {
+ $(".notif-item.unseen").parent("li").addClass("unseen");
+ }
+});
+</script>
\ No newline at end of file