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
|
||||
.badge{:id => "notification_badge"}
|
||||
= link_to(image_tag('icons/notifications_grey.png', :height => 16, :width => 16, :id => 'notification-flag'), notifications_path)
|
||||
.badge_count
|
||||
= current_user.unread_notifications.count
|
||||
- if current_user.unread_notifications.count > 0
|
||||
.badge_count
|
||||
= current_user.unread_notifications.count
|
||||
|
||||
- if user_signed_in?
|
||||
.right
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
.right
|
||||
= link_to t('.mark_all_as_read'), notifications_read_all_path, :class => 'btn'
|
||||
|
||||
%h3
|
||||
= t('.notifications')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue