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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
1.6 KiB
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
2022-06-21 17:19:12 +05:30
- if @milestone_states.any? { |name, count| count > 0 }
.top-area
= render 'shared/milestones_filter', counts: @milestone_states
2015-12-23 02:04:40 +05:30
2022-06-21 17:19:12 +05:30
.nav-controls
= render 'shared/milestones/search_form'
= render 'shared/milestones_sort_dropdown'
- if can?(current_user, :admin_milestone, @group)
2022-07-16 23:28:13 +05:30
= link_to _('New milestone'), new_group_milestone_path(@group), class: "btn gl-button btn-confirm gl-ml-3", data: { qa_selector: "new_group_milestone_link" }
2015-11-26 14:37:03 +05:30
2022-06-21 17:19:12 +05:30
- if @milestones.blank?
= render 'shared/empty_states/milestones_tab', learn_more_path: help_page_path('user/project/milestones/index') do
- if can?(current_user, :admin_milestone, @group)
.text-center
= link_to _('New milestone'), new_group_milestone_path(@group), class: "btn gl-button btn-confirm", data: { qa_selector: "new_group_milestone_link" }
- else
.milestones
%ul.content-list
- @milestones.each do |milestone|
- if milestone.project_milestone?
= render 'projects/milestones/milestone', milestone: milestone
- else
= render 'milestone', milestone: milestone
= paginate @milestones, theme: "gitlab"
2021-03-11 19:13:27 +05:30
- else
2022-06-21 17:19:12 +05:30
= render 'shared/empty_states/milestones', learn_more_path: help_page_path('user/project/milestones/index') do
- if can?(current_user, :admin_milestone, @group)
.text-center
= link_to _('New milestone'), new_group_milestone_path(@group), class: "btn gl-button btn-confirm", data: { qa_selector: "new_group_milestone_link" }