This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/templates/notifications.js.handlebars
Sam e06da1821d BUGFIX: notifications were not updated correctly live
- missing notifications when multiple replies in topic (till refresh)
- not cleared properly on click
2014-05-23 11:34:34 +10:00

19 lines
605 B
Handlebars

<section class="d-dropdown" id="notifications-dropdown">
{{#unless controllers.header.loading_notifications}}
{{#if content}}
<ul>
{{#each}}
<li {{bind-attr class="read"}}>{{notification-item model=this scope=scope}}</li>
{{/each}}
<li class="read last">
<a {{bind-attr href="currentUser.path"}}>{{i18n notifications.more}} &hellip;</a>
</li>
</ul>
{{else}}
<div class="none">{{i18n notifications.none}}</div>
{{/if}}
{{else}}
<div class='loading'><i class='fa fa-spinner fa-spin'></i></div>
{{/unless}}
</section>