debian-mirror-gitlab/app/views/groups/milestones/index.html.haml

24 lines
853 B
Text
Raw Normal View History

2020-07-28 23:09:34 +05:30
- page_title _("Milestones")
2021-01-03 14:25:43 +05:30
- add_page_specific_style 'page_bundles/milestone'
2014-09-02 18:07:02 +05:30
2016-04-02 18:10:28 +05:30
.top-area
2017-08-17 22:00:37 +05:30
= render 'shared/milestones_filter', counts: @milestone_states
2015-12-23 02:04:40 +05:30
2018-03-17 18:26:18 +05:30
.nav-controls
2019-03-02 22:35:43 +05:30
= render 'shared/milestones/search_form'
2018-03-17 18:26:18 +05:30
= render 'shared/milestones_sort_dropdown'
2018-11-20 20:47:30 +05:30
- if can?(current_user, :admin_milestone, @group)
2021-04-17 20:07:23 +05:30
= link_to _('New milestone'), new_group_milestone_path(@group), class: "btn gl-button btn-confirm", data: { qa_selector: "new_group_milestone_link" }
2015-11-26 14:37:03 +05:30
2021-03-11 19:13:27 +05:30
- if @milestones.blank?
= render 'shared/empty_states/milestones'
- else
.milestones
%ul.content-list
2015-11-26 14:37:03 +05:30
- @milestones.each do |milestone|
2020-06-23 00:09:42 +05:30
- if milestone.project_milestone?
= render 'projects/milestones/milestone', milestone: milestone
- else
= render 'milestone', milestone: milestone
2021-03-11 19:13:27 +05:30
= paginate @milestones, theme: "gitlab"