added read all button, hide count if zero
This commit is contained in:
parent
c48e792c75
commit
82c9ccfbe0
2 changed files with 6 additions and 2 deletions
|
|
@ -53,8 +53,9 @@
|
||||||
#nav_badges
|
#nav_badges
|
||||||
.badge{:id => "notification_badge"}
|
.badge{:id => "notification_badge"}
|
||||||
= link_to(image_tag('icons/notifications_grey.png', :height => 16, :width => 16, :id => 'notification-flag'), notifications_path)
|
= link_to(image_tag('icons/notifications_grey.png', :height => 16, :width => 16, :id => 'notification-flag'), notifications_path)
|
||||||
.badge_count
|
- if current_user.unread_notifications.count > 0
|
||||||
= current_user.unread_notifications.count
|
.badge_count
|
||||||
|
= current_user.unread_notifications.count
|
||||||
|
|
||||||
- if user_signed_in?
|
- if user_signed_in?
|
||||||
.right
|
.right
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
|
.right
|
||||||
|
= link_to t('.mark_all_as_read'), notifications_read_all_path, :class => 'btn'
|
||||||
|
|
||||||
%h3
|
%h3
|
||||||
= t('.notifications')
|
= t('.notifications')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue