notifications_data.html
39 lines
| 1.4 KiB
| text/html
|
HtmlLexer
r1791 | ||||
r1817 | %if c.notifications: | |||
r1791 | <% | |||
unread = lambda n:{False:'unread'}.get(n) | ||||
%> | ||||
r2190 | <div class="notification-paginator"> | |||
<div class="pagination-wh pagination-left"> | ||||
${c.notifications.pager('$link_previous ~2~ $link_next')} | ||||
r1791 | </div> | |||
</div> | ||||
r2190 | ||||
<div class="notification-list notification-table"> | ||||
%for notification in c.notifications: | ||||
<div id="notification_${notification.notification.notification_id}" class="container ${unread(notification.read)}"> | ||||
<div class="notification-header"> | ||||
<div class="gravatar"> | ||||
<img alt="gravatar" src="${h.gravatar_url(h.email(notification.notification.created_by_user.email),24)}"/> | ||||
</div> | ||||
<div class="desc ${unread(notification.read)}"> | ||||
<a href="${url('notification', notification_id=notification.notification.notification_id)}">${notification.notification.description}</a> | ||||
</div> | ||||
<div class="delete-notifications"> | ||||
<span id="${notification.notification.notification_id}" class="delete-notification delete_icon action"></span> | ||||
</div> | ||||
</div> | ||||
<div class="notification-subject">${h.literal(notification.notification.subject)}</div> | ||||
</div> | ||||
%endfor | ||||
</div> | ||||
<div class="notification-paginator"> | ||||
<div class="pagination-wh pagination-left"> | ||||
${c.notifications.pager('$link_previous ~2~ $link_next')} | ||||
</div> | ||||
</div> | ||||
r1791 | %else: | |||
<div class="table">${_('No notifications here yet')}</div> | ||||
r1888 | %endif | |||