diff --git a/rhodecode/controllers/admin/notifications.py b/rhodecode/controllers/admin/notifications.py --- a/rhodecode/controllers/admin/notifications.py +++ b/rhodecode/controllers/admin/notifications.py @@ -8,7 +8,7 @@ from rhodecode.lib.base import BaseContr from rhodecode.model.db import Notification from rhodecode.model.notification import NotificationModel -from rhodecode.lib.auth import LoginRequired +from rhodecode.lib.auth import LoginRequired, NotAnonymous from rhodecode.lib import helpers as h from rhodecode.model.meta import Session @@ -23,6 +23,7 @@ class NotificationsController(BaseContro # path_prefix='/_admin', name_prefix='_admin_') @LoginRequired() + @NotAnonymous() def __before__(self): super(NotificationsController, self).__before__() diff --git a/rhodecode/public/css/style.css b/rhodecode/public/css/style.css --- a/rhodecode/public/css/style.css +++ b/rhodecode/public/css/style.css @@ -3526,7 +3526,9 @@ form.comment-inline-form { padding-top: 6px; float: left } - +.notification-list .container.unread{ + +} .notification-header .desc.unread{ font-weight: bold; font-size: 17px; diff --git a/rhodecode/templates/admin/notifications/notifications.html b/rhodecode/templates/admin/notifications/notifications.html --- a/rhodecode/templates/admin/notifications/notifications.html +++ b/rhodecode/templates/admin/notifications/notifications.html @@ -29,8 +29,9 @@ unread = lambda n:{False:'unread'}.get(n) %>
+
%for notification in c.notifications: -
+
gravatar @@ -45,6 +46,7 @@
${h.literal(notification.notification.subject)}
%endfor +
%else:
${_('No notifications here yet')}