added read all button, hide count if zero

This commit is contained in:
Diaspora Europe 2012-03-13 17:55:48 +01:00
parent c48e792c75
commit 82c9ccfbe0
2 changed files with 6 additions and 2 deletions

View file

@ -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

View file

@ -1,3 +1,6 @@
.right
= link_to t('.mark_all_as_read'), notifications_read_all_path, :class => 'btn'
%h3
= t('.notifications')