Vulcan/packages/telescope-notifications/lib/client/templates/notifications_menu.html

19 lines
676 B
HTML
Raw Normal View History

2014-08-20 17:03:54 +09:00
<template name="notificationsMenu">
{{#if isLoggedIn}}
2014-08-20 17:12:03 +09:00
<div class="dropdown notifications-menu header-submodule">
2014-12-01 16:53:41 +09:00
<a class="view dropdown-top-level" href="/">{{notificationCount}}</a>
2014-08-20 17:03:54 +09:00
<div class="dropdown-menu">
<ul role="menu" aria-labelledby="dLabel">
{{#if hasNotifications}}
2014-12-01 16:53:41 +09:00
<li><a href="#" class="button mark-as-read btn btn-primary">{{_ "mark_as_read"}}</a></li>
2014-08-20 17:03:54 +09:00
{{#each notifications}}
{{> UI.dynamic template=notificationItem}}
{{/each}}
{{else}}
2014-11-24 11:27:07 +09:00
<li>{{_ "no_notifications"}}</li>
2014-08-20 17:03:54 +09:00
{{/if}}
</ul>
</div>
</div>
{{/if}}
</template>