##// END OF EJS Templates
removed top pagination from notifications as it's breaking the UI
marcink -
r2516:8ee72933 beta
parent child Browse files
Show More
@@ -1,39 +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 <div class="notification-paginator">
6
7 <div class="pagination-wh pagination-left">
8 ${c.notifications.pager('$link_previous ~2~ $link_next')}
9 </div>
10 </div>
11
7
12 <div class="notification-list notification-table">
8 <div class="notification-list notification-table">
13 %for notification in c.notifications:
9 %for notification in c.notifications:
14 <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)}">
15 <div class="notification-header">
11 <div class="notification-header">
16 <div class="gravatar">
12 <div class="gravatar">
17 <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)}"/>
18 </div>
14 </div>
19 <div class="desc ${unread(notification.read)}">
15 <div class="desc ${unread(notification.read)}">
20 <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>
21 </div>
17 </div>
22 <div class="delete-notifications">
18 <div class="delete-notifications">
23 <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>
24 </div>
20 </div>
25 </div>
21 </div>
26 <div class="notification-subject">${h.literal(notification.notification.subject)}</div>
22 <div class="notification-subject">${h.literal(notification.notification.subject)}</div>
27 </div>
23 </div>
28 %endfor
24 %endfor
29 </div>
25 </div>
30
26
31 <div class="notification-paginator">
27 <div class="notification-paginator">
32 <div class="pagination-wh pagination-left">
28 <div class="pagination-wh pagination-left">
33 ${c.notifications.pager('$link_previous ~2~ $link_next')}
29 ${c.notifications.pager('$link_previous ~2~ $link_next')}
34 </div>
30 </div>
35 </div>
31 </div>
36
32
37 %else:
33 %else:
38 <div class="table">${_('No notifications here yet')}</div>
34 <div class="table">${_('No notifications here yet')}</div>
39 %endif
35 %endif
General Comments 0
You need to be logged in to leave comments. Login now