index.html.haml 1.05 KB
Newer Older
1 2
= render "issues/head"
.milestones_content
randx's avatar
randx committed
3
  %h3.page_title
4 5
    Milestones
    - if can? current_user, :admin_milestone, @project
6 7 8
      = link_to new_project_milestone_path(@project), class: "pull-right btn btn-primary", title: "New Milestone" do
        %i.icon-plus
        New Milestone
9
  %br
10 11 12 13

  .row
    .span3
      %ul.nav.nav-pills.nav-stacked
14 15
        %li{class: ("active" if (params[:f] == "active" || !params[:f]))}
          = link_to project_milestones_path(@project, f: "active") do
16
            Active
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
17 18 19
        %li{class: ("active" if params[:f] == "closed")}
          = link_to project_milestones_path(@project, f: "closed") do
            Closed
20 21
        %li{class: ("active" if params[:f] == "all")}
          = link_to project_milestones_path(@project, f: "all") do
22
            All
23 24 25 26
    .span9
      %div.ui-box
        %ul.well-list
          = render @milestones
27

28 29 30 31 32
          - if @milestones.present?
            %li.bottom= paginate @milestones, theme: "gitlab"
          - else
            %li
              %h3.nothing_here_message Nothing to show here