2012-10-04 10:09:20 +09:00
|
|
|
<template name="notifications">
|
2012-10-04 17:35:57 +09:00
|
|
|
{{#if currentUser}}
|
2012-10-08 16:49:01 +09:00
|
|
|
{{#if canPost}}
|
2014-08-12 16:16:44 +09:00
|
|
|
<div class="notifications module {{notification_class}}">
|
2013-11-06 01:01:56 +01:00
|
|
|
<a href="#" class="mark-as-read">{{i18n "Mark all as read"}}</a>
|
2012-10-08 16:49:01 +09:00
|
|
|
<ul>
|
|
|
|
{{#each notifications}}
|
2014-07-05 11:42:28 +09:00
|
|
|
{{> UI.dynamic template=notification_item}}
|
2012-10-08 16:49:01 +09:00
|
|
|
{{/each}}
|
|
|
|
</ul>
|
|
|
|
</div>
|
2014-07-11 10:18:09 +09:00
|
|
|
<a href="#" class="notifications-toggle {{notification_class}}">{{notification_count}}</a>
|
2012-10-08 16:49:01 +09:00
|
|
|
{{/if}}
|
2012-10-04 17:35:57 +09:00
|
|
|
{{/if}}
|
2012-10-04 10:09:20 +09:00
|
|
|
</template>
|