kinda gross hack to prevent mobile notifications from show up for unauthenticated users
This commit is contained in:
parent
ba88ce6be4
commit
8ac7a74f50
1 changed files with 7 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue