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/user/notifications.js.handlebars
2014-09-12 14:27:34 -04:00

25 lines
605 B
Handlebars

{{#if model.error}}
<div class="item error">
{{#if model.forbidden}}
{{i18n errors.reasons.forbidden}}
{{else}}
{{i18n errors.desc.unknown}}
{{/if}}
</div>
{{/if}}
{{#each itemController="notification"}}
<div {{bind-attr class=":item :notification read::unread"}}>
{{notification-item notification=this scope=scope}}
<span class="time">
{{format-date path="created_at" leaveAgo="true"}}
</span>
</div>
{{/each}}
{{#if loading}}
<div class='spinner'>{{i18n loading}}</div>
{{/if}}
{{#unless canLoadMore}}
<div class='end-of-stream'></div>
{{/unless}}