add 'mark all as read' on notification dropdown

This commit is contained in:
danielgrippi 2011-10-25 17:33:57 -07:00
parent 9fba69cd5b
commit f204910aa4
3 changed files with 12 additions and 10 deletions

View file

@ -50,7 +50,7 @@ class NotificationsController < VannaController
post_process :html do
def post_read_all(json)
Response.new(:status => 302, :location => aspects_path)
Response.new(:status => 302, :location => multi_path)
end
end

View file

@ -40,7 +40,10 @@
#notification_dropdown
.header
= link_to t('.view_all'), notifications_path, :id => "view_all_notifications"
.right
= link_to t('notifications.index.mark_all_as_read'), read_all_notifications_path
\|
= link_to t('.view_all'), notifications_path, :id => "view_all_notifications"
%h4
= t('.recent_notifications')
.notifications

View file

@ -3075,14 +3075,6 @@ a.toggle_selector
:position absolute
:left 0
#view_all_notifications
:float right
:margin
:right 3px
:font
:weight bold
#notification_dropdown
@include dropdown-shadow
@ -3096,6 +3088,13 @@ a.toggle_selector
:color #444
.right
:font-size smaller
:right 10px
:top 13px
:font
:weight bold
a
:color $blue