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
riking 69bc552054 FEATURE: Actually show more notifications
The "Show more notifications..." link in the notifications dropdown now
links to /my/notifications, which is a historical view of all
notifications you have recieved.

Notification history is loaded in blocks of 60 at a time.

Admins can see others' notification history. (This was requested for
'debugging purposes', though that's what impersonation is for, IMO.)
2014-09-09 16:29:08 -07:00

25 lines
598 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">
{{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}}