Mercurial > kallithea
annotate rhodecode/templates/admin/notifications/notifications_data.html @ 2503:d04243e932cc beta
Added filtering on inbox by comments
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 25 Jun 2012 22:40:04 +0200 |
parents | 64f7cf8f6a33 |
children | 8ee72933405f |
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 %> |
2190
64f7cf8f6a33
notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
6 <div class="notification-paginator"> |
64f7cf8f6a33
notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
7 <div class="pagination-wh pagination-left"> |
64f7cf8f6a33
notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
8 ${c.notifications.pager('$link_previous ~2~ $link_next')} |
1791
2aee0dc1784e
mark all read button for notifications
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
9 </div> |
2aee0dc1784e
mark all read button for notifications
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
10 </div> |
2190
64f7cf8f6a33
notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
11 |
64f7cf8f6a33
notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
12 <div class="notification-list notification-table"> |
64f7cf8f6a33
notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
13 %for notification in c.notifications: |
64f7cf8f6a33
notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
14 <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
|
15 <div class="notification-header"> |
64f7cf8f6a33
notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
16 <div class="gravatar"> |
64f7cf8f6a33
notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
17 <img alt="gravatar" src="${h.gravatar_url(h.email(notification.notification.created_by_user.email),24)}"/> |
64f7cf8f6a33
notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
18 </div> |
64f7cf8f6a33
notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
19 <div class="desc ${unread(notification.read)}"> |
64f7cf8f6a33
notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
20 <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
|
21 </div> |
64f7cf8f6a33
notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
22 <div class="delete-notifications"> |
64f7cf8f6a33
notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
23 <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
|
24 </div> |
64f7cf8f6a33
notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
25 </div> |
64f7cf8f6a33
notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
26 <div class="notification-subject">${h.literal(notification.notification.subject)}</div> |
64f7cf8f6a33
notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
27 </div> |
64f7cf8f6a33
notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
28 %endfor |
64f7cf8f6a33
notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
29 </div> |
64f7cf8f6a33
notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
30 |
64f7cf8f6a33
notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
31 <div class="notification-paginator"> |
64f7cf8f6a33
notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
32 <div class="pagination-wh pagination-left"> |
64f7cf8f6a33
notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
33 ${c.notifications.pager('$link_previous ~2~ $link_next')} |
64f7cf8f6a33
notification inbox improvements
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
34 </div> |
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 |
1791
2aee0dc1784e
mark all read button for notifications
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
37 %else: |
2aee0dc1784e
mark all read button for notifications
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
38 <div class="table">${_('No notifications here yet')}</div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1817
diff
changeset
|
39 %endif |