2013-06-23 12:47:22 -04:00
|
|
|
= render "projects/issues/head"
|
2012-04-08 17:28:58 -04:00
|
|
|
.milestones_content
|
2013-07-13 01:45:48 -04:00
|
|
|
%h3.page-title
|
2012-04-08 17:28:58 -04:00
|
|
|
Milestones
|
|
|
|
- if can? current_user, :admin_milestone, @project
|
2013-08-01 15:35:40 -04:00
|
|
|
= 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
|
2014-01-06 07:19:25 -05:00
|
|
|
.col-md-3.hidden-sm
|
2013-04-16 13:01:21 -04:00
|
|
|
%ul.nav.nav-pills.nav-stacked
|
2012-08-30 15:15:34 -04:00
|
|
|
%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
|
2012-08-30 15:15:34 -04:00
|
|
|
%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
|
2013-12-30 16:55:15 -05:00
|
|
|
.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
|
2013-08-15 13:31:16 -04:00
|
|
|
%h3.nothing_here_message No milestones to show
|
2013-05-23 04:44:24 -04:00
|
|
|
|
|
|
|
= paginate @milestones, theme: "gitlab"
|