2016-06-16 23:09:34 +05:30
|
|
|
- @no_container = true
|
2017-08-17 22:00:37 +05:30
|
|
|
- page_title 'Milestones'
|
2017-09-10 17:25:29 +05:30
|
|
|
|
2016-08-24 12:49:21 +05:30
|
|
|
%div{ class: container_class }
|
2016-06-16 23:09:34 +05:30
|
|
|
.top-area
|
2017-08-17 22:00:37 +05:30
|
|
|
= render 'shared/milestones_filter', counts: milestone_counts(@project.milestones)
|
2015-12-23 02:04:40 +05:30
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
.nav-controls
|
2017-08-17 22:00:37 +05:30
|
|
|
= render 'shared/milestones_sort_dropdown'
|
2016-06-16 23:09:34 +05:30
|
|
|
- if can?(current_user, :admin_milestone, @project)
|
2018-11-18 11:00:15 +05:30
|
|
|
= link_to new_project_milestone_path(@project), class: "btn btn-new qa-new-project-milestone", title: 'New milestone' do
|
2017-08-17 22:00:37 +05:30
|
|
|
New milestone
|
2015-12-23 02:04:40 +05:30
|
|
|
|
2016-06-16 23:09:34 +05:30
|
|
|
.milestones
|
2018-03-17 18:26:18 +05:30
|
|
|
#delete-milestone-modal
|
2018-03-27 19:54:05 +05:30
|
|
|
#promote-milestone-modal
|
2018-03-17 18:26:18 +05:30
|
|
|
|
2016-06-16 23:09:34 +05:30
|
|
|
%ul.content-list
|
|
|
|
= render @milestones
|
2015-09-25 12:07:36 +05:30
|
|
|
|
2016-06-16 23:09:34 +05:30
|
|
|
- if @milestones.blank?
|
|
|
|
%li
|
|
|
|
.nothing-here-block No milestones to show
|
2014-09-02 18:07:02 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
= paginate @milestones, theme: 'gitlab'
|