From 8ac7a74f504c8d0fd3a4cfb29c5a869972e779ae Mon Sep 17 00:00:00 2001 From: Maxwell Salzberg Date: Tue, 13 Mar 2012 16:31:16 -0700 Subject: [PATCH] kinda gross hack to prevent mobile notifications from show up for unauthenticated users --- app/views/layouts/application.mobile.haml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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