2020-06-22 08:08:47 -04:00
|
|
|
- page_title _("Milestones")
|
2020-09-30 05:10:11 -04:00
|
|
|
- add_page_specific_style 'page_bundles/milestone'
|
2017-07-03 07:51:35 -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 04:38:48 -04:00
|
|
|
.nav-controls
|
2019-01-17 09:35:23 -05:00
|
|
|
= render 'shared/milestones/search_form'
|
2017-11-07 13:57:30 -05:00
|
|
|
= render 'shared/milestones_sort_dropdown'
|
2018-08-06 15:02:52 -04:00
|
|
|
- if can?(current_user, :admin_milestone, @group)
|
2021-03-05 10:09:12 -05:00
|
|
|
= link_to _('New milestone'), new_group_milestone_path(@group), class: "btn gl-button btn-confirm", data: { qa_selector: "new_group_milestone_link" }
|
2016-02-03 12:41:55 -05:00
|
|
|
|
2021-02-03 10:09:24 -05:00
|
|
|
- if @milestones.blank?
|
|
|
|
= render 'shared/empty_states/milestones'
|
|
|
|
- else
|
|
|
|
.milestones
|
|
|
|
%ul.content-list
|
2015-11-13 13:20:48 -05:00
|
|
|
- @milestones.each do |milestone|
|
2020-05-28 08:08:10 -04:00
|
|
|
- if milestone.project_milestone?
|
|
|
|
= render 'projects/milestones/milestone', milestone: milestone
|
|
|
|
- else
|
|
|
|
= render 'milestone', milestone: milestone
|
2021-02-03 10:09:24 -05:00
|
|
|
= paginate @milestones, theme: "gitlab"
|