diff options
author | Alex Braha Stoll <alexbrahastoll@gmail.com> | 2016-12-13 07:29:12 +0300 |
---|---|---|
committer | Adam Niedzielski <adamsunday@gmail.com> | 2017-03-10 15:04:19 +0300 |
commit | 50a8f16e165d45bf6b518c0e250e1f5a360a6d3f (patch) | |
tree | 750a23b4089a654453c612a79e595fd701c12c70 /app/views/shared/_milestones_filter.html.haml | |
parent | 81ad61113112c49704cfe24b8e47479976422e60 (diff) |
Add count badges to both dashboard and group milestones
Diffstat (limited to 'app/views/shared/_milestones_filter.html.haml')
-rw-r--r-- | app/views/shared/_milestones_filter.html.haml | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/app/views/shared/_milestones_filter.html.haml b/app/views/shared/_milestones_filter.html.haml index 704893b4d5b..57a0eaa919e 100644 --- a/app/views/shared/_milestones_filter.html.haml +++ b/app/views/shared/_milestones_filter.html.haml @@ -1,19 +1,13 @@ -- if @project - - counts = milestone_counts(@project.milestones) - %ul.nav-links %li{ class: milestone_class_for_state(params[:state], 'opened', true) }> = link_to milestones_filter_path(state: 'opened') do Open - - if @project - %span.badge= counts[:opened] + %span.badge= counts[:opened] %li{ class: milestone_class_for_state(params[:state], 'closed') }> = link_to milestones_filter_path(state: 'closed') do Closed - - if @project - %span.badge= counts[:closed] + %span.badge= counts[:closed] %li{ class: milestone_class_for_state(params[:state], 'all') }> = link_to milestones_filter_path(state: 'all') do All - - if @project - %span.badge= counts[:all] + %span.badge= counts[:all] |