kinda gross hack to prevent mobile notifications from show up for unauthenticated users

This commit is contained in:
Maxwell Salzberg 2012-03-13 16:31:16 -07:00
parent ba88ce6be4
commit 8ac7a74f50

View file

@ -50,12 +50,13 @@
.navbar-inner .navbar-inner
.container{:style => "position: relative;"} .container{:style => "position: relative;"}
= link_to(image_tag('header-logo2x.png', :height => 40, :width => 40, :id => 'header_title'), stream_path) = link_to(image_tag('header-logo2x.png', :height => 40, :width => 40, :id => 'header_title'), stream_path)
#nav_badges - if user_signed_in?
.badge{:id => "notification_badge"} #nav_badges
= link_to(image_tag('icons/notifications_grey.png', :height => 16, :width => 16, :id => 'notification-flag'), notifications_path) .badge{:id => "notification_badge"}
- if current_user.unread_notifications.count > 0 = link_to(image_tag('icons/notifications_grey.png', :height => 16, :width => 16, :id => 'notification-flag'), notifications_path)
.badge_count - if current_user.unread_notifications.count > 0
= current_user.unread_notifications.count .badge_count
= current_user.unread_notifications.count
- if user_signed_in? - if user_signed_in?
.right .right