summaryrefslogtreecommitdiff
path: root/app/controllers/groups
diff options
context:
space:
mode:
authorAlex Braha Stoll <alexbrahastoll@gmail.com>2016-12-13 02:29:12 -0200
committerAdam Niedzielski <adamsunday@gmail.com>2017-03-10 13:04:19 +0100
commit50a8f16e165d45bf6b518c0e250e1f5a360a6d3f (patch)
tree750a23b4089a654453c612a79e595fd701c12c70 /app/controllers/groups
parent81ad61113112c49704cfe24b8e47479976422e60 (diff)
downloadgitlab-ce-50a8f16e165d45bf6b518c0e250e1f5a360a6d3f.tar.gz
Add count badges to both dashboard and group milestonesadam-count-badges-group-dashboard-milestones
Diffstat (limited to 'app/controllers/groups')
-rw-r--r--app/controllers/groups/milestones_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/groups/milestones_controller.rb b/app/controllers/groups/milestones_controller.rb
index 0d872c86c8a..43102596201 100644
--- a/app/controllers/groups/milestones_controller.rb
+++ b/app/controllers/groups/milestones_controller.rb
@@ -6,6 +6,7 @@ class Groups::MilestonesController < Groups::ApplicationController
def index
respond_to do |format|
format.html do
+ @milestone_states = GlobalMilestone.states_count(@projects)
@milestones = Kaminari.paginate_array(milestones).page(params[:page])
end
end