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
|
|
|
|
%i.icon-list.icon-2x
|
|
|
|
.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-26 05:58:40 -04:00
|
|
|
%li{class: "milestone milestone-#{milestone.state == 'closed' ? 'closed' : 'open'}", id: dom_id(milestone.milestones.first) }
|
|
|
|
- unless milestone.state == 'closed'
|
|
|
|
.pull-right
|
|
|
|
= link_to 'Close Milestone', root_path, method: :put, remote: true, class: "btn btn-small btn-remove"
|
2014-06-25 07:30:23 -04:00
|
|
|
%h4
|
2014-06-26 04:57:36 -04:00
|
|
|
= link_to_gfm truncate(milestone.title, length: 100), root_path
|
2014-06-26 05:58:40 -04:00
|
|
|
%div
|
2014-06-25 10:19:03 -04:00
|
|
|
%div
|
2014-06-26 05:58:40 -04:00
|
|
|
= link_to root_path do
|
|
|
|
= pluralize milestone.issue_count, 'Issue'
|
|
|
|
|
|
|
|
= link_to root_path do
|
|
|
|
= 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
|
|
|
|
- milestone.project_names.each do |name|
|
|
|
|
%span.label.label-default
|
|
|
|
= name
|