2016-07-27 13:53:22 -04:00
|
|
|
|
|
|
|
<div class="generic-page-wrapper">
|
|
|
|
{{include file="section_title.tpl" title=$notif_header}}
|
|
|
|
|
|
|
|
{{if $tabs }}{{include file="common_tabs.tpl"}}{{/if}}
|
|
|
|
|
|
|
|
<div class="notif-network-wrapper">
|
|
|
|
{{* The "show ignored" link *}}
|
2016-08-01 12:18:11 -04:00
|
|
|
{{if $notif_show_lnk}}<a href="{{$notif_show_lnk.href}}" id="notifications-show-hide-link">{{$notif_show_lnk.text}}</a>{{/if}}
|
2016-07-27 13:53:22 -04:00
|
|
|
|
|
|
|
{{* The notifications *}}
|
|
|
|
{{if $notif_content}}
|
|
|
|
<ul class="notif-network-list media-list">
|
|
|
|
{{foreach $notif_content as $notification}}
|
|
|
|
<li>{{$notification}}</li>
|
|
|
|
{{/foreach}}
|
|
|
|
</ul>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{* If no notifications messages available *}}
|
|
|
|
{{if $notif_nocontent}}
|
|
|
|
<div class="notif_nocontent">{{$notif_nocontent}}</div>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2016-08-01 17:04:41 -04:00
|
|
|
|
|
|
|
{{* The pager *}}
|
|
|
|
{{$notif_paginate}}
|
2016-07-27 13:53:22 -04:00
|
|
|
</div>
|
2016-08-08 08:05:33 -04:00
|
|
|
|
|
|
|
{{* 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 *}}
|
2017-10-20 09:21:42 -04:00
|
|
|
<script type="text/javascript">
|
2016-08-08 08:05:33 -04:00
|
|
|
$(document).ready(function(){
|
|
|
|
if( $(".notif-item").hasClass("unseen")) {
|
|
|
|
$(".notif-item.unseen").parent("li").addClass("unseen");
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|