2015-03-31 23:45:47 +00:00
|
|
|
%li{class: "milestone milestone-#{milestone.closed? ? 'closed' : 'open'}", id: dom_id(milestone.milestones.first) }
|
2015-09-08 09:14:48 +00:00
|
|
|
.row
|
|
|
|
.col-sm-6
|
|
|
|
%strong
|
|
|
|
= link_to_gfm truncate(milestone.title, length: 100), group_milestone_path(@group, milestone.safe_title, title: milestone.title)
|
|
|
|
.col-sm-6
|
|
|
|
.pull-right.light #{milestone.percent_complete}% complete
|
2015-03-31 23:45:47 +00:00
|
|
|
.row
|
|
|
|
.col-sm-6
|
2015-05-25 12:17:17 +00:00
|
|
|
= link_to issues_group_path(@group, milestone_title: milestone.title) do
|
2016-02-23 00:08:00 +00:00
|
|
|
= pluralize milestone.issues_count, 'Issue'
|
2015-09-08 09:14:48 +00:00
|
|
|
·
|
2015-05-25 12:17:17 +00:00
|
|
|
= link_to merge_requests_group_path(@group, milestone_title: milestone.title) do
|
2015-03-31 23:45:47 +00:00
|
|
|
= pluralize milestone.merge_requests_count, 'Merge Request'
|
|
|
|
.col-sm-6
|
|
|
|
= milestone_progress_bar(milestone)
|
2015-09-08 09:14:48 +00:00
|
|
|
.row
|
|
|
|
.col-sm-6
|
|
|
|
%div
|
|
|
|
- milestone.milestones.each do |milestone|
|
|
|
|
= link_to milestone_path(milestone) do
|
|
|
|
%span.label.label-gray
|
|
|
|
= milestone.project.name
|
|
|
|
.col-sm-6
|
2015-11-16 15:14:19 +00:00
|
|
|
- if can?(current_user, :admin_milestones, @group)
|
2015-09-08 09:14:48 +00:00
|
|
|
- if milestone.closed?
|
|
|
|
= link_to 'Reopen Milestone', group_milestone_path(@group, milestone.safe_title, title: milestone.title, milestone: {state_event: :activate }), method: :put, class: "btn btn-xs btn-grouped btn-reopen"
|
|
|
|
- else
|
|
|
|
= link_to 'Close Milestone', group_milestone_path(@group, milestone.safe_title, title: milestone.title, milestone: {state_event: :close }), method: :put, class: "btn btn-xs btn-close"
|