Show More
@@ -8,7 +8,7 b' from rhodecode.lib.base import BaseContr' | |||
|
8 | 8 | from rhodecode.model.db import Notification |
|
9 | 9 | |
|
10 | 10 | from rhodecode.model.notification import NotificationModel |
|
11 | from rhodecode.lib.auth import LoginRequired | |
|
11 | from rhodecode.lib.auth import LoginRequired, NotAnonymous | |
|
12 | 12 | from rhodecode.lib import helpers as h |
|
13 | 13 | from rhodecode.model.meta import Session |
|
14 | 14 | |
@@ -23,6 +23,7 b' class NotificationsController(BaseContro' | |||
|
23 | 23 | # path_prefix='/_admin', name_prefix='_admin_') |
|
24 | 24 | |
|
25 | 25 | @LoginRequired() |
|
26 | @NotAnonymous() | |
|
26 | 27 | def __before__(self): |
|
27 | 28 | super(NotificationsController, self).__before__() |
|
28 | 29 |
@@ -3526,7 +3526,9 b' form.comment-inline-form {' | |||
|
3526 | 3526 | padding-top: 6px; |
|
3527 | 3527 | float: left |
|
3528 | 3528 | } |
|
3529 | ||
|
3529 | .notification-list .container.unread{ | |
|
3530 | ||
|
3531 | } | |
|
3530 | 3532 | .notification-header .desc.unread{ |
|
3531 | 3533 | font-weight: bold; |
|
3532 | 3534 | font-size: 17px; |
@@ -29,8 +29,9 b'' | |||
|
29 | 29 | unread = lambda n:{False:'unread'}.get(n) |
|
30 | 30 | %> |
|
31 | 31 | <div class="table"> |
|
32 | <div class="notification-list"> | |
|
32 | 33 | %for notification in c.notifications: |
|
33 | <div id="notification_${notification.notification.notification_id}"> | |
|
34 | <div id="notification_${notification.notification.notification_id}" class="container ${unread(notification.read)}"> | |
|
34 | 35 | <div class="notification-header"> |
|
35 | 36 | <div class="gravatar"> |
|
36 | 37 | <img alt="gravatar" src="${h.gravatar_url(h.email(notification.notification.created_by_user.email),24)}"/> |
@@ -45,6 +46,7 b'' | |||
|
45 | 46 | <div class="notification-subject">${h.literal(notification.notification.subject)}</div> |
|
46 | 47 | </div> |
|
47 | 48 | %endfor |
|
49 | </div> | |
|
48 | 50 | </div> |
|
49 | 51 | %else: |
|
50 | 52 | <div class="table">${_('No notifications here yet')}</div> |
General Comments 0
You need to be logged in to leave comments.
Login now