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

25 lines
858 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)
2020-07-28 23:09:34 +05:30
= link_to "New milestone", new_group_milestone_path(@group), class: "btn btn-success", data: { qa_selector: "new_group_milestone_link" }
2015-11-26 14:37:03 +05:30
2015-04-26 12:48:37 +05:30
.milestones
2015-09-25 12:07:36 +05:30
%ul.content-list
2015-11-26 14:37:03 +05:30
- if @milestones.blank?
2015-09-25 12:07:36 +05:30
%li
.nothing-here-block No milestones to show
- else
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
2015-11-26 14:37:03 +05:30
= paginate @milestones, theme: "gitlab"