2012-04-08 23:28:58 +02:00
|
|
|
= render "issues/head"
|
|
|
|
.milestones_content
|
2012-06-30 23:35:24 +02:00
|
|
|
%h3.page_title
|
2012-04-08 23:28:58 +02:00
|
|
|
Milestones
|
|
|
|
- if can? current_user, :admin_milestone, @project
|
2013-01-30 15:40:43 +01:00
|
|
|
= link_to "New Milestone", new_project_milestone_path(@project), class: "pull-right btn btn-small", title: "New Milestone"
|
2012-04-08 23:28:58 +02:00
|
|
|
%br
|
|
|
|
%div.ui-box
|
|
|
|
.title
|
2012-04-10 07:51:08 +02:00
|
|
|
%ul.nav.nav-pills
|
2012-08-30 21:15:34 +02:00
|
|
|
%li{class: ("active" if (params[:f] == "active" || !params[:f]))}
|
|
|
|
= link_to project_milestones_path(@project, f: "active") do
|
2012-04-08 23:28:58 +02:00
|
|
|
Active
|
2012-12-14 06:34:05 +01:00
|
|
|
%li{class: ("active" if params[:f] == "closed")}
|
|
|
|
= link_to project_milestones_path(@project, f: "closed") do
|
|
|
|
Closed
|
2012-08-30 21:15:34 +02:00
|
|
|
%li{class: ("active" if params[:f] == "all")}
|
|
|
|
= link_to project_milestones_path(@project, f: "all") do
|
2012-04-08 23:28:58 +02:00
|
|
|
All
|
|
|
|
|
2012-12-18 04:14:05 +01:00
|
|
|
%ul.well-list
|
2012-04-08 23:28:58 +02:00
|
|
|
= render @milestones
|
|
|
|
|
|
|
|
- if @milestones.present?
|
2012-12-14 06:34:05 +01:00
|
|
|
%li.bottom= paginate @milestones, theme: "gitlab"
|
2012-04-08 23:28:58 +02:00
|
|
|
- else
|
|
|
|
%li
|
2012-06-21 16:23:25 +02:00
|
|
|
%h3.nothing_here_message Nothing to show here
|