diff options
author | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2011-11-25 23:44:02 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2011-11-25 23:44:02 +0200 |
commit | a9928eae4862fe1068bd3f48e8b5ec31d5c09151 (patch) | |
tree | a8bb8296e773c959f8930f9206e825fae5459456 | |
parent | 15fa14f1d62520956f6db156062e7125e6d432f1 (diff) | |
download | gitlab-ce-a9928eae4862fe1068bd3f48e8b5ec31d5c09151.tar.gz |
fixed sidebar zero count
-rw-r--r-- | app/views/layouts/project.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/layouts/project.html.haml b/app/views/layouts/project.html.haml index b6ce8096e5c..0c121cc9fef 100644 --- a/app/views/layouts/project.html.haml +++ b/app/views/layouts/project.html.haml @@ -37,11 +37,11 @@ %span{ :class => "number" }= @project.issues.opened.count = link_to wall_project_path(@project), :class => current_page?(:controller => "projects", :action => "wall", :id => @project) ? "current" : nil do Wall - - if @project.common_notes.count > 0 + - if @project.common_notes.today.count > 0 %span{ :class => "number" }= @project.common_notes.today.count = link_to project_snippets_path(@project), :class => (controller.controller_name == "snippets") ? "current" : nil do Snippets - - if @project.snippets.count > 0 + - if @project.snippets.non_expired.count > 0 %span{ :class => "number" }= @project.snippets.non_expired.count - if can? current_user, :admin_project, @project |