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

29 lines
1,003 B
Text
Raw Normal View History

- @no_container = true
2017-08-17 22:00:37 +05:30
- page_title 'Milestones'
2017-09-10 17:25:29 +05:30
- if show_new_nav? && can?(current_user, :admin_milestone, @project)
- content_for :breadcrumbs_extra do
= link_to "New milestone", new_namespace_project_milestone_path(@project.namespace, @project), class: 'btn btn-new', title: 'New milestone'
2017-08-17 22:00:37 +05:30
= render "shared/mr_head"
2014-09-02 18:07:02 +05:30
2016-08-24 12:49:21 +05:30
%div{ class: container_class }
.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
2017-09-10 17:25:29 +05:30
.nav-controls{ class: ("nav-controls-new-nav" if show_new_nav?) }
2017-08-17 22:00:37 +05:30
= render 'shared/milestones_sort_dropdown'
- if can?(current_user, :admin_milestone, @project)
2017-09-10 17:25:29 +05:30
= link_to new_project_milestone_path(@project), class: "btn btn-new #{("visible-xs" if show_new_nav?)}", title: 'New milestone' do
2017-08-17 22:00:37 +05:30
New milestone
2015-12-23 02:04:40 +05:30
.milestones
%ul.content-list
= render @milestones
2015-09-25 12:07:36 +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'