annotate rhodecode/templates/admin/notifications/notifications_data.html @ 3179:cd50d1b5f35b

merged with beta
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 21 Jan 2013 00:03:44 +0100
parents c25cc1c7c65f
children ffd45b185016
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1791
2aee0dc1784e mark all read button for notifications
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
1
1817
523b1011a625 - fixed issue with mark all read button for notifications and listeners on delete buttons
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
2 %if c.notifications:
1791
2aee0dc1784e mark all read button for notifications
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
3 <%
2aee0dc1784e mark all read button for notifications
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
4 unread = lambda n:{False:'unread'}.get(n)
2aee0dc1784e mark all read button for notifications
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
5 %>
2516
8ee72933405f removed top pagination from notifications as it's breaking the UI
Marcin Kuzminski <marcin@python-works.com>
parents: 2190
diff changeset
6
2190
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
7
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
8 <div class="notification-list notification-table">
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
9 %for notification in c.notifications:
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
10 <div id="notification_${notification.notification.notification_id}" class="container ${unread(notification.read)}">
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
11 <div class="notification-header">
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
12 <div class="gravatar">
2732
c25cc1c7c65f again #531 forgot to replace other occurences of h.email call
Marcin Kuzminski <marcin@python-works.com>
parents: 2673
diff changeset
13 <img alt="gravatar" src="${h.gravatar_url(h.email_or_none(notification.notification.created_by_user.email),24)}"/>
2190
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
14 </div>
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
15 <div class="desc ${unread(notification.read)}">
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
16 <a href="${url('notification', notification_id=notification.notification.notification_id)}">${notification.notification.description}</a>
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
17 </div>
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
18 <div class="delete-notifications">
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
19 <span id="${notification.notification.notification_id}" class="delete-notification delete_icon action"></span>
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
20 </div>
2610
3fdf7c3be2c9 added mark as read for single notifications
Marcin Kuzminski <marcin@python-works.com>
parents: 2518
diff changeset
21 %if not notification.read:
3fdf7c3be2c9 added mark as read for single notifications
Marcin Kuzminski <marcin@python-works.com>
parents: 2518
diff changeset
22 <div class="read-notifications">
3fdf7c3be2c9 added mark as read for single notifications
Marcin Kuzminski <marcin@python-works.com>
parents: 2518
diff changeset
23 <span id="${notification.notification.notification_id}" class="read-notification accept_icon action"></span>
2673
d5e42c00f3c1 white space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 2610
diff changeset
24 </div>
2610
3fdf7c3be2c9 added mark as read for single notifications
Marcin Kuzminski <marcin@python-works.com>
parents: 2518
diff changeset
25 %endif
2190
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
26 </div>
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
27 <div class="notification-subject">${h.literal(notification.notification.subject)}</div>
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
28 </div>
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
29 %endfor
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
30 </div>
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
31
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
32 <div class="notification-paginator">
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
33 <div class="pagination-wh pagination-left">
2518
83aff72a1da7 Remember filtering on notifications filters
Marcin Kuzminski <marcin@python-works.com>
parents: 2516
diff changeset
34 ${c.notifications.pager('$link_previous ~2~ $link_next',**request.GET.mixed())}
2190
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
35 </div>
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
36 </div>
64f7cf8f6a33 notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
37
1791
2aee0dc1784e mark all read button for notifications
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
38 %else:
2aee0dc1784e mark all read button for notifications
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
39 <div class="table">${_('No notifications here yet')}</div>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1817
diff changeset
40 %endif