2020-06-22 12:08:47 +00:00
|
|
|
- page_title _("Milestones")
|
2020-09-30 09:10:11 +00:00
|
|
|
- add_page_specific_style 'page_bundles/milestone'
|
2017-07-03 11:51:35 +00:00
|
|
|
|
2016-02-03 17:41:55 +00:00
|
|
|
.top-area
|
2016-12-13 04:29:12 +00:00
|
|
|
= render 'shared/milestones_filter', counts: @milestone_states
|
2015-12-02 13:02:12 +00:00
|
|
|
|
2017-09-06 08:38:48 +00:00
|
|
|
.nav-controls
|
2019-01-17 14:35:23 +00:00
|
|
|
= render 'shared/milestones/search_form'
|
2017-11-07 18:57:30 +00:00
|
|
|
= render 'shared/milestones_sort_dropdown'
|
2018-08-06 19:02:52 +00:00
|
|
|
- if can?(current_user, :admin_milestone, @group)
|
2021-03-05 15:09:12 +00: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 17:41:55 +00:00
|
|
|
|
2021-02-03 15:09:24 +00:00
|
|
|
- if @milestones.blank?
|
|
|
|
= render 'shared/empty_states/milestones'
|
|
|
|
- else
|
|
|
|
.milestones
|
|
|
|
%ul.content-list
|
2015-11-13 18:20:48 +00:00
|
|
|
- @milestones.each do |milestone|
|
2020-05-28 12:08:10 +00:00
|
|
|
- if milestone.project_milestone?
|
|
|
|
= render 'projects/milestones/milestone', milestone: milestone
|
|
|
|
- else
|
|
|
|
= render 'milestone', milestone: milestone
|
2021-02-03 15:09:24 +00:00
|
|
|
= paginate @milestones, theme: "gitlab"
|