2012-04-08 23:28:58 +02:00
|
|
|
= render "issues/head"
|
|
|
|
.milestones_content
|
|
|
|
%h3
|
|
|
|
Milestones
|
|
|
|
- if can? current_user, :admin_milestone, @project
|
|
|
|
= link_to "New Milestone", new_project_milestone_path(@project), :class => "right btn small", :title => "New Milestone"
|
|
|
|
%br
|
|
|
|
%div.ui-box
|
|
|
|
.title
|
2012-04-10 07:51:08 +02:00
|
|
|
%ul.nav.nav-pills
|
2012-04-08 23:28:58 +02:00
|
|
|
%li{:class => ("active" if (params[:f] == "0" || !params[:f]))}
|
2012-06-04 00:37:27 +02:00
|
|
|
= link_to project_milestones_path(@project, :f => 0) do
|
2012-04-08 23:28:58 +02:00
|
|
|
Active
|
|
|
|
%li{:class => ("active" if params[:f] == "1")}
|
2012-06-04 00:37:27 +02:00
|
|
|
= link_to project_milestones_path(@project, :f => 1) do
|
2012-04-08 23:28:58 +02:00
|
|
|
All
|
|
|
|
|
|
|
|
%ul.unstyled
|
|
|
|
= render @milestones
|
|
|
|
|
|
|
|
- if @milestones.present?
|
|
|
|
%li.bottom= paginate @milestones, :remote => true, :theme => "gitlab"
|
|
|
|
- else
|
|
|
|
%li
|
|
|
|
%p.padded Nothing to show here
|