diff --git a/app/views/layouts/application.mobile.haml b/app/views/layouts/application.mobile.haml index 6b51993bc..8350693c5 100644 --- a/app/views/layouts/application.mobile.haml +++ b/app/views/layouts/application.mobile.haml @@ -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 diff --git a/app/views/notifications/index.mobile.haml b/app/views/notifications/index.mobile.haml index 4d3d25470..6ea77428d 100644 --- a/app/views/notifications/index.mobile.haml +++ b/app/views/notifications/index.mobile.haml @@ -1,3 +1,6 @@ +.right + = link_to t('.mark_all_as_read'), notifications_read_all_path, :class => 'btn' + %h3 = t('.notifications')