2015-09-11 14:41:01 +05:30
|
|
|
- page_title "Milestones"
|
2017-09-10 17:25:29 +05:30
|
|
|
- if show_new_nav? && can?(current_user, :admin_milestones, @group)
|
|
|
|
- content_for :breadcrumbs_extra do
|
|
|
|
= link_to "New milestone", new_group_milestone_path(@group), class: "btn btn-new"
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
= render "groups/head_issues"
|
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
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
.nav-controls{ class: ("visible-xs" if show_new_nav?) }
|
2016-04-02 18:10:28 +05:30
|
|
|
- if can?(current_user, :admin_milestones, @group)
|
2017-09-10 17:25:29 +05:30
|
|
|
= link_to "New milestone", new_group_milestone_path(@group), class: "btn btn-new"
|
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|
|
2015-09-25 12:07:36 +05:30
|
|
|
= render 'milestone', milestone: milestone
|
2015-11-26 14:37:03 +05:30
|
|
|
= paginate @milestones, theme: "gitlab"
|