BigW Consortium Gitlab

index.html.haml 1.02 KB
Newer Older
1
= render "projects/issues/head"
2
.milestones_content
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
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
    .span9
24
      .ui-box
25 26
        %ul.well-list
          = render @milestones
27

28
          - if @milestones.blank?
29 30
            %li
              %h3.nothing_here_message Nothing to show here
31 32

      = paginate @milestones, theme: "gitlab"