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