Show More
@@ -1,39 +1,35 b'' | |||
|
1 | 1 | |
|
2 | 2 | %if c.notifications: |
|
3 | 3 | <% |
|
4 | 4 | unread = lambda n:{False:'unread'}.get(n) |
|
5 | 5 | %> |
|
6 | <div class="notification-paginator"> | |
|
7 | <div class="pagination-wh pagination-left"> | |
|
8 | ${c.notifications.pager('$link_previous ~2~ $link_next')} | |
|
9 | </div> | |
|
10 | </div> | |
|
6 | ||
|
11 | 7 | |
|
12 | 8 | <div class="notification-list notification-table"> |
|
13 | 9 | %for notification in c.notifications: |
|
14 | 10 | <div id="notification_${notification.notification.notification_id}" class="container ${unread(notification.read)}"> |
|
15 | 11 | <div class="notification-header"> |
|
16 | 12 | <div class="gravatar"> |
|
17 | 13 | <img alt="gravatar" src="${h.gravatar_url(h.email(notification.notification.created_by_user.email),24)}"/> |
|
18 | 14 | </div> |
|
19 | 15 | <div class="desc ${unread(notification.read)}"> |
|
20 | 16 | <a href="${url('notification', notification_id=notification.notification.notification_id)}">${notification.notification.description}</a> |
|
21 | 17 | </div> |
|
22 | 18 | <div class="delete-notifications"> |
|
23 | 19 | <span id="${notification.notification.notification_id}" class="delete-notification delete_icon action"></span> |
|
24 | 20 | </div> |
|
25 | 21 | </div> |
|
26 | 22 | <div class="notification-subject">${h.literal(notification.notification.subject)}</div> |
|
27 | 23 | </div> |
|
28 | 24 | %endfor |
|
29 | 25 | </div> |
|
30 | 26 | |
|
31 | 27 | <div class="notification-paginator"> |
|
32 | 28 | <div class="pagination-wh pagination-left"> |
|
33 | 29 | ${c.notifications.pager('$link_previous ~2~ $link_next')} |
|
34 | 30 | </div> |
|
35 | 31 | </div> |
|
36 | 32 | |
|
37 | 33 | %else: |
|
38 | 34 | <div class="table">${_('No notifications here yet')}</div> |
|
39 | 35 | %endif |
General Comments 0
You need to be logged in to leave comments.
Login now