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
|
2014-10-01 18:21:29 -04:00
|
|
|
%i.fa.fa-plus
|
2013-04-16 15:20:35 -04:00
|
|
|
New Milestone
|
2013-04-16 13:01:21 -04:00
|
|
|
|
|
|
|
.row
|
2014-06-14 16:44:23 -04:00
|
|
|
.fixed.sidebar-expand-button.hidden-lg.hidden-md.hidden-xs
|
2014-10-01 18:21:29 -04:00
|
|
|
%i.fa.fa-list.fa-2x
|
2014-06-14 16:44:23 -04:00
|
|
|
.col-md-3.responsive-side
|
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
|
2014-05-29 11:42:44 -04:00
|
|
|
.panel.panel-default
|
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
|
2014-02-20 06:51:22 -05:00
|
|
|
.nothing-here-block No milestones to show
|
2013-05-23 04:44:24 -04:00
|
|
|
|
|
|
|
= paginate @milestones, theme: "gitlab"
|