summaryrefslogtreecommitdiff
path: root/app/views/groups/milestones/index.html.haml
diff options
context:
space:
mode:
authorMarin Jankovski <marin@gitlab.com>2014-06-25 16:19:03 +0200
committerMarin Jankovski <marin@gitlab.com>2014-06-30 09:44:30 +0200
commit58570880f0ffde173de31a0093f6a9d243467fef (patch)
tree60663bfd1930411e1a49afbe827394d4031bc840 /app/views/groups/milestones/index.html.haml
parente1afea777a6f0d2e28adc2765c9445cb10bd25f8 (diff)
downloadgitlab-ce-58570880f0ffde173de31a0093f6a9d243467fef.tar.gz
Create group milestones service.
Diffstat (limited to 'app/views/groups/milestones/index.html.haml')
-rw-r--r--app/views/groups/milestones/index.html.haml25
1 files changed, 22 insertions, 3 deletions
diff --git a/app/views/groups/milestones/index.html.haml b/app/views/groups/milestones/index.html.haml
index a9cf06b817d..b5d68153a9a 100644
--- a/app/views/groups/milestones/index.html.haml
+++ b/app/views/groups/milestones/index.html.haml
@@ -17,11 +17,11 @@
.col-md-9
.panel.panel-default
%ul.well-list
- - if @milestones.blank?
+ - if @group_milestones.blank?
%li
.nothing-here-block No milestones to show
- else
- - @milestones.group_by(&:title).each do |milestone|
+ - @group_milestones.titles.each do |title|
%li{class: "milestone milestone-open", id: 1 }
.pull-right
= link_to root_path, class: "btn btn-small edit-milestone-link btn-grouped" do
@@ -29,4 +29,23 @@
Edit
= link_to 'Close Milestone', root_path, method: :put, remote: true, class: "btn btn-small btn-remove"
%h4
- = link_to_gfm truncate(milestone.first, length: 100), root_path
+ = link_to_gfm truncate(title, length: 100), root_path
+ - if false
+ %span.muted Empty
+ - else
+ %div
+ %div
+ = link_to root_path do
+ = pluralize @group_milestones.issue_count[title], 'Issue'
+ &nbsp;
+ = link_to root_path do
+ = pluralize @group_milestones.mr_count[title], 'Merge Request'
+ &nbsp;
+ %span.light #{@group_milestones.percent_complete[title]}% complete
+ .progress.progress-info
+ .progress-bar{style: "width: #{@group_milestones.percent_complete[title]}%;"}
+ %div
+ %br
+ - @group_milestones.project_names[title].each do |name|
+ %span.label.label-default
+ = name