2014-06-25 06:30:57 -04:00
|
|
|
%h3.page-title
|
|
|
|
Milestones
|
2014-06-26 04:57:36 -04:00
|
|
|
%span.pull-right #{@group_milestones.count} milestones
|
2014-06-25 06:30:57 -04:00
|
|
|
|
|
|
|
%p.light
|
|
|
|
Only milestones from
|
|
|
|
%strong #{@group.name}
|
|
|
|
group are listed here.
|
|
|
|
|
|
|
|
%hr
|
|
|
|
|
|
|
|
.row
|
|
|
|
.fixed.sidebar-expand-button.hidden-lg.hidden-md
|
2014-10-01 18:21:29 -04:00
|
|
|
%i.fa.fa-list.fa-2x
|
2014-06-25 06:30:57 -04:00
|
|
|
.col-md-3.responsive-side
|
2014-06-26 05:58:40 -04:00
|
|
|
= render 'groups/filter', entity: 'milestone'
|
2014-06-25 06:30:57 -04:00
|
|
|
.col-md-9
|
2014-06-25 07:30:23 -04:00
|
|
|
.panel.panel-default
|
|
|
|
%ul.well-list
|
2014-06-25 10:19:03 -04:00
|
|
|
- if @group_milestones.blank?
|
2014-06-25 07:30:23 -04:00
|
|
|
%li
|
|
|
|
.nothing-here-block No milestones to show
|
|
|
|
- else
|
2014-06-26 04:57:36 -04:00
|
|
|
- @group_milestones.each do |milestone|
|
2014-06-27 04:14:57 -04:00
|
|
|
%li{class: "milestone milestone-#{milestone.closed? ? 'closed' : 'open'}", id: dom_id(milestone.milestones.first) }
|
2014-06-26 07:32:35 -04:00
|
|
|
.pull-right
|
2014-06-30 05:38:03 -04:00
|
|
|
- if can?(current_user, :manage_group, @group)
|
|
|
|
- if milestone.closed?
|
2014-07-03 03:48:16 -04:00
|
|
|
= link_to 'Reopen Milestone', group_milestone_path(@group, milestone.safe_title, title: milestone.title, milestone: {state_event: :activate }), method: :put, class: "btn btn-small btn-grouped btn-reopen"
|
2014-06-30 05:38:03 -04:00
|
|
|
- else
|
2014-07-03 03:48:16 -04:00
|
|
|
= link_to 'Close Milestone', group_milestone_path(@group, milestone.safe_title, title: milestone.title, milestone: {state_event: :close }), method: :put, class: "btn btn-small btn-close"
|
2014-06-25 07:30:23 -04:00
|
|
|
%h4
|
2014-06-30 10:18:26 -04:00
|
|
|
= link_to_gfm truncate(milestone.title, length: 100), group_milestone_path(@group, milestone.safe_title, title: milestone.title)
|
2014-06-26 05:58:40 -04:00
|
|
|
%div
|
2014-06-25 10:19:03 -04:00
|
|
|
%div
|
2014-06-30 10:18:26 -04:00
|
|
|
= link_to group_milestone_path(@group, milestone.safe_title, title: milestone.title) do
|
2014-06-26 05:58:40 -04:00
|
|
|
= pluralize milestone.issue_count, 'Issue'
|
|
|
|
|
2014-06-30 10:18:26 -04:00
|
|
|
= link_to group_milestone_path(@group, milestone.safe_title, title: milestone.title) do
|
2014-06-26 05:58:40 -04:00
|
|
|
= pluralize milestone.merge_requests_count, 'Merge Request'
|
|
|
|
|
|
|
|
%span.light #{milestone.percent_complete}% complete
|
|
|
|
.progress.progress-info
|
|
|
|
.progress-bar{style: "width: #{milestone.percent_complete}%;"}
|
|
|
|
%div
|
|
|
|
%br
|
2014-06-26 07:32:35 -04:00
|
|
|
- milestone.projects.each do |project|
|
2014-06-26 05:58:40 -04:00
|
|
|
%span.label.label-default
|
2014-06-26 07:32:35 -04:00
|
|
|
= project.name
|
2014-07-04 05:57:24 -04:00
|
|
|
= paginate @group_milestones, theme: "gitlab"
|