Commit 017dfaee6500b10e30e46db0040672f792f360c5

Authored by Dmitriy Zaporozhets
1 parent 837685d5

Issue sidebar counter should show count of assigned to you

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
app/views/layouts/project.html.haml
... ... @@ -33,8 +33,8 @@
33 33 %span{ :class => "number" }= @project.users_projects.count
34 34 = link_to project_issues_filter_path(@project), :class => (controller.controller_name == "issues") ? "current" : nil do
35 35 Issues
36   - - if @project.issues.opened.count > 0
37   - %span{ :class => "number" }= @project.issues.opened.count
  36 + - if @project.issues.assigned(current_user).count > 0
  37 + %span{ :class => "number" }= @project.issues.assigned(current_user).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 40 - if @project.common_notes.today.count > 0
... ...