don't display notificatification badge div if there is no notification count (permalink works)

This commit is contained in:
zhitomirskiyi 2011-01-05 10:07:22 -08:00
parent c7ecab4933
commit 2f06ec1dca

View file

@ -22,11 +22,12 @@
= form_tag(people_path, :method => 'get', :id => "global_search_form") do = form_tag(people_path, :method => 'get', :id => "global_search_form") do
= text_field_tag 'q', nil, :placeholder => t('search'), :type => 'search', :results => 5 = text_field_tag 'q', nil, :placeholder => t('search'), :type => 'search', :results => 5
#notification_badge - if @notification_count
= link_to "", notifications_path, :title => new_notification_text(@notification_count) #notification_badge
= image_tag 'icons/mail_grey.png' = link_to "", notifications_path, :title => new_notification_text(@notification_count)
#notification_badge_number{:class => ("hidden" if @notification_count == 0)} = image_tag 'icons/mail_grey.png'
= @notification_count #notification_badge_number{:class => ("hidden" if @notification_count == 0)}
= @notification_count
%ul#user_menu %ul#user_menu
.right .right