BigW Consortium Gitlab

index.html.haml 1.01 KB
Newer Older
1
= render "projects/issues/head"
2
.milestones_content
3
  %h3.page-title
4 5
    Milestones
    - if can? current_user, :admin_milestone, @project
6
      = link_to new_project_milestone_path(@project), class: "pull-right btn btn-new", title: "New Milestone" do
7 8
        %i.icon-plus
        New Milestone
9 10 11 12

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

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

      = paginate @milestones, theme: "gitlab"