Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/milestones/index.html.haml')
-rw-r--r--app/views/projects/milestones/index.html.haml32
1 files changed, 32 insertions, 0 deletions
diff --git a/app/views/projects/milestones/index.html.haml b/app/views/projects/milestones/index.html.haml
new file mode 100644
index 00000000000..1bc359398ab
--- /dev/null
+++ b/app/views/projects/milestones/index.html.haml
@@ -0,0 +1,32 @@
+= render "projects/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
+ .ui-box
+ %ul.well-list
+ = render @milestones
+
+ - if @milestones.blank?
+ %li
+ %h3.nothing_here_message Nothing to show here
+
+ = paginate @milestones, theme: "gitlab"