notifications_data.html
41 lines
| 1.5 KiB
| text/html
|
HtmlLexer
r1791 | ||||
r1817 | %if c.notifications: | |||
r1791 | <% | |||
unread = lambda n:{False:'unread'}.get(n) | ||||
%> | ||||
r2516 | ||||
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"> | ||||
r2732 | <img alt="gravatar" src="${h.gravatar_url(h.email_or_none(notification.notification.created_by_user.email),24)}"/> | |||
r2190 | </div> | |||
<div class="desc ${unread(notification.read)}"> | ||||
<a href="${url('notification', notification_id=notification.notification.notification_id)}">${notification.notification.description}</a> | ||||
Bradley M. Kuhn
|
r4116 | |||
r2190 | </div> | |||
<div class="delete-notifications"> | ||||
Bradley M. Kuhn
|
r4116 | <span id="${notification.notification.notification_id}" class="delete-notification"><i class="icon-minus-sign" id="yui-gen24" style="color: #b94a48"></i></span> | ||
r2190 | </div> | |||
r2610 | %if not notification.read: | |||
<div class="read-notifications"> | ||||
Bradley M. Kuhn
|
r4116 | <span id="${notification.notification.notification_id}" class="read-notification"><i class="icon-ok-sign" id="yui-gen24" style="color: #4CBB17"></i></span> | ||
r2673 | </div> | |||
r2610 | %endif | |||
r2190 | </div> | |||
Bradley M. Kuhn
|
r4116 | <div class="notification-subject"></div> | ||
r2190 | </div> | |||
%endfor | ||||
</div> | ||||
<div class="notification-paginator"> | ||||
<div class="pagination-wh pagination-left"> | ||||
r2518 | ${c.notifications.pager('$link_previous ~2~ $link_next',**request.GET.mixed())} | |||
r2190 | </div> | |||
</div> | ||||
r1791 | %else: | |||
<div class="table">${_('No notifications here yet')}</div> | ||||
r1888 | %endif | |||