summaryrefslogtreecommitdiff
path: root/app/views/groups/milestones/index.html.haml
blob: 66c6cc9e27936e88d9756d32b4441bbcd9940646 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
- page_title "Milestones"
- 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"

= render "groups/head_issues"

.top-area
  = render 'shared/milestones_filter', counts: @milestone_states

  .nav-controls{ class: ("visible-xs" if show_new_nav?) }
    - if can?(current_user, :admin_milestones, @group)
      = link_to "New milestone", new_group_milestone_path(@group), class: "btn btn-new"

.milestones
  %ul.content-list
    - if @milestones.blank?
      %li
        .nothing-here-block No milestones to show
    - else
      - @milestones.each do |milestone|
        = render 'milestone', milestone: milestone
  = paginate @milestones, theme: "gitlab"