32 lines
1 KiB
Text
32 lines
1 KiB
Text
= render "issues/head"
|
|
.milestones_content
|
|
%h3.page_title
|
|
Milestones
|
|
- if can? current_user, :admin_milestone, @project
|
|
= link_to new_project_milestone_path(@project), class: "pull-right btn btn-primary", title: "New Milestone" do
|
|
%i.icon-plus
|
|
New Milestone
|
|
%br
|
|
|
|
.row
|
|
.span3
|
|
%ul.nav.nav-pills.nav-stacked
|
|
%li{class: ("active" if (params[:f] == "active" || !params[:f]))}
|
|
= link_to project_milestones_path(@project, f: "active") do
|
|
Active
|
|
%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
|
|
All
|
|
.span9
|
|
%div.ui-box
|
|
%ul.well-list
|
|
= render @milestones
|
|
|
|
- if @milestones.present?
|
|
%li.bottom= paginate @milestones, theme: "gitlab"
|
|
- else
|
|
%li
|
|
%h3.nothing_here_message Nothing to show here
|