diff --git a/app/views/layouts/application.mobile.haml b/app/views/layouts/application.mobile.haml index 8350693c5..8a5e30389 100644 --- a/app/views/layouts/application.mobile.haml +++ b/app/views/layouts/application.mobile.haml @@ -50,12 +50,13 @@ .navbar-inner .container{:style => "position: relative;"} = link_to(image_tag('header-logo2x.png', :height => 40, :width => 40, :id => 'header_title'), stream_path) - #nav_badges - .badge{:id => "notification_badge"} - = link_to(image_tag('icons/notifications_grey.png', :height => 16, :width => 16, :id => 'notification-flag'), notifications_path) - - if current_user.unread_notifications.count > 0 - .badge_count - = current_user.unread_notifications.count + - if user_signed_in? + #nav_badges + .badge{:id => "notification_badge"} + = link_to(image_tag('icons/notifications_grey.png', :height => 16, :width => 16, :id => 'notification-flag'), notifications_path) + - if current_user.unread_notifications.count > 0 + .badge_count + = current_user.unread_notifications.count - if user_signed_in? .right