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