gitlab-org--gitlab-foss/app/views/groups/milestones/index.html.haml

51 lines
2.3 KiB
Text
Raw Normal View History

%h3.page-title
Milestones
%span.pull-right #{@group_milestones.count} milestones
%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
.col-md-3.responsive-side
2014-06-26 05:58:40 -04:00
= render 'groups/filter', entity: 'milestone'
.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
- @group_milestones.each do |milestone|
%li{class: "milestone milestone-#{milestone.closed? ? 'closed' : 'open'}", id: dom_id(milestone.milestones.first) }
2014-06-26 07:32:35 -04:00
.pull-right
- if can?(current_user, :manage_group, @group)
- 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-small 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-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
= paginate @group_milestones, theme: "gitlab"