add 'mark all as read' on notification dropdown
This commit is contained in:
parent
9fba69cd5b
commit
f204910aa4
3 changed files with 12 additions and 10 deletions
|
|
@ -50,7 +50,7 @@ class NotificationsController < VannaController
|
||||||
|
|
||||||
post_process :html do
|
post_process :html do
|
||||||
def post_read_all(json)
|
def post_read_all(json)
|
||||||
Response.new(:status => 302, :location => aspects_path)
|
Response.new(:status => 302, :location => multi_path)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,10 @@
|
||||||
|
|
||||||
#notification_dropdown
|
#notification_dropdown
|
||||||
.header
|
.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
|
%h4
|
||||||
= t('.recent_notifications')
|
= t('.recent_notifications')
|
||||||
.notifications
|
.notifications
|
||||||
|
|
|
||||||
|
|
@ -3075,14 +3075,6 @@ a.toggle_selector
|
||||||
:position absolute
|
:position absolute
|
||||||
:left 0
|
:left 0
|
||||||
|
|
||||||
#view_all_notifications
|
|
||||||
:float right
|
|
||||||
:margin
|
|
||||||
:right 3px
|
|
||||||
:font
|
|
||||||
:weight bold
|
|
||||||
|
|
||||||
|
|
||||||
#notification_dropdown
|
#notification_dropdown
|
||||||
@include dropdown-shadow
|
@include dropdown-shadow
|
||||||
|
|
||||||
|
|
@ -3096,6 +3088,13 @@ a.toggle_selector
|
||||||
|
|
||||||
:color #444
|
:color #444
|
||||||
|
|
||||||
|
.right
|
||||||
|
:font-size smaller
|
||||||
|
:right 10px
|
||||||
|
:top 13px
|
||||||
|
:font
|
||||||
|
:weight bold
|
||||||
|
|
||||||
a
|
a
|
||||||
:color $blue
|
:color $blue
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue