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

32 lines
1 KiB
Text
Raw Normal View History

= render "projects/issues/head"
2012-04-08 17:28:58 -04:00
.milestones_content
%h3.page-title
2012-04-08 17:28:58 -04:00
Milestones
- if can? current_user, :admin_milestone, @project
= link_to new_project_milestone_path(@project), class: "pull-right btn btn-new", title: "New Milestone" do
2013-04-16 15:20:35 -04:00
%i.icon-plus
New Milestone
2013-04-16 13:01:21 -04:00
.row
.col-md-3.hidden-sm
2013-04-16 13:01:21 -04:00
%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 17:28:58 -04:00
Active
2012-12-14 00:34:05 -05: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 17:28:58 -04:00
All
.col-md-9
2013-05-23 04:44:24 -04:00
.ui-box
2013-04-16 13:01:21 -04:00
%ul.well-list
= render @milestones
2012-04-08 17:28:58 -04:00
2013-05-23 04:44:24 -04:00
- if @milestones.blank?
2013-04-16 13:01:21 -04:00
%li
%h3.nothing_here_message No milestones to show
2013-05-23 04:44:24 -04:00
= paginate @milestones, theme: "gitlab"