From 2f06ec1dca60d0b2fa846093ffee2aa1442d11c0 Mon Sep 17 00:00:00 2001 From: zhitomirskiyi <ilya@joindiaspora.com> Date: Wed, 5 Jan 2011 10:07:22 -0800 Subject: [PATCH] don't display notificatification badge div if there is no notification count (permalink works) --- app/views/layouts/_header.html.haml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/views/layouts/_header.html.haml b/app/views/layouts/_header.html.haml index d8c31f41df..620ba3f203 100644 --- a/app/views/layouts/_header.html.haml +++ b/app/views/layouts/_header.html.haml @@ -22,11 +22,12 @@ = form_tag(people_path, :method => 'get', :id => "global_search_form") do = text_field_tag 'q', nil, :placeholder => t('search'), :type => 'search', :results => 5 - #notification_badge - = link_to "", notifications_path, :title => new_notification_text(@notification_count) - = image_tag 'icons/mail_grey.png' - #notification_badge_number{:class => ("hidden" if @notification_count == 0)} - = @notification_count + - if @notification_count + #notification_badge + = link_to "", notifications_path, :title => new_notification_text(@notification_count) + = image_tag 'icons/mail_grey.png' + #notification_badge_number{:class => ("hidden" if @notification_count == 0)} + = @notification_count %ul#user_menu .right -- GitLab