Commit a9928eae4862fe1068bd3f48e8b5ec31d5c09151

Authored by Dmitriy Zaporozhets
1 parent 15fa14f1

fixed sidebar zero count

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
app/views/layouts/project.html.haml
... ... @@ -37,11 +37,11 @@
37 37 %span{ :class => "number" }= @project.issues.opened.count
38 38 = link_to wall_project_path(@project), :class => current_page?(:controller => "projects", :action => "wall", :id => @project) ? "current" : nil do
39 39 Wall
40   - - if @project.common_notes.count > 0
  40 + - if @project.common_notes.today.count > 0
41 41 %span{ :class => "number" }= @project.common_notes.today.count
42 42 = link_to project_snippets_path(@project), :class => (controller.controller_name == "snippets") ? "current" : nil do
43 43 Snippets
44   - - if @project.snippets.count > 0
  44 + - if @project.snippets.non_expired.count > 0
45 45 %span{ :class => "number" }= @project.snippets.non_expired.count
46 46  
47 47 - if can? current_user, :admin_project, @project
... ...