2015-04-30 13:06:18 -04:00
|
|
|
- page_title "Milestones"
|
2017-09-06 06:58:24 -04:00
|
|
|
- if can?(current_user, :admin_milestones, @group)
|
2017-07-03 07:51:35 -04:00
|
|
|
- content_for :breadcrumbs_extra do
|
|
|
|
= link_to "New milestone", new_group_milestone_path(@group), class: "btn btn-new"
|
|
|
|
|
2017-02-22 17:42:11 -05:00
|
|
|
= render "groups/head_issues"
|
2014-06-25 06:30:57 -04:00
|
|
|
|
2016-02-03 12:41:55 -05:00
|
|
|
.top-area
|
2016-12-12 23:29:12 -05:00
|
|
|
= render 'shared/milestones_filter', counts: @milestone_states
|
2015-12-02 08:02:12 -05:00
|
|
|
|
2017-09-06 06:58:24 -04:00
|
|
|
.nav-controls.visible-xs
|
2016-02-03 12:41:55 -05:00
|
|
|
- if can?(current_user, :admin_milestones, @group)
|
2017-07-03 07:51:35 -04:00
|
|
|
= link_to "New milestone", new_group_milestone_path(@group), class: "btn btn-new"
|
2016-02-03 12:41:55 -05:00
|
|
|
|
2015-01-06 15:32:04 -05:00
|
|
|
.milestones
|
2015-09-07 07:18:11 -04:00
|
|
|
%ul.content-list
|
2015-11-13 13:20:48 -05:00
|
|
|
- if @milestones.blank?
|
2015-09-07 07:18:11 -04:00
|
|
|
%li
|
|
|
|
.nothing-here-block No milestones to show
|
|
|
|
- else
|
2015-11-13 13:20:48 -05:00
|
|
|
- @milestones.each do |milestone|
|
2015-09-07 07:18:11 -04:00
|
|
|
= render 'milestone', milestone: milestone
|
2015-11-13 13:20:48 -05:00
|
|
|
= paginate @milestones, theme: "gitlab"
|