gitlab-org--gitlab-foss/app/views/projects/milestones/index.html.haml

33 lines
1.0 KiB
Plaintext
Raw Normal View History

= render "projects/issues/head"
2012-04-08 21:28:58 +00:00
.milestones_content
%h3.page_title
2012-04-08 21:28:58 +00:00
Milestones
- if can? current_user, :admin_milestone, @project
2013-04-16 19:20:35 +00:00
= link_to new_project_milestone_path(@project), class: "pull-right btn btn-primary", title: "New Milestone" do
%i.icon-plus
New Milestone
2012-04-08 21:28:58 +00:00
%br
2013-04-16 17:01:21 +00:00
.row
.span3
%ul.nav.nav-pills.nav-stacked
%li{class: ("active" if (params[:f] == "active" || !params[:f]))}
= link_to project_milestones_path(@project, f: "active") do
2012-04-08 21:28:58 +00:00
Active
2012-12-14 05:34:05 +00:00
%li{class: ("active" if params[:f] == "closed")}
= link_to project_milestones_path(@project, f: "closed") do
Closed
%li{class: ("active" if params[:f] == "all")}
= link_to project_milestones_path(@project, f: "all") do
2012-04-08 21:28:58 +00:00
All
2013-04-16 17:01:21 +00:00
.span9
2013-05-23 08:44:24 +00:00
.ui-box
2013-04-16 17:01:21 +00:00
%ul.well-list
= render @milestones
2012-04-08 21:28:58 +00:00
2013-05-23 08:44:24 +00:00
- if @milestones.blank?
2013-04-16 17:01:21 +00:00
%li
%h3.nothing_here_message Nothing to show here
2013-05-23 08:44:24 +00:00
= paginate @milestones, theme: "gitlab"