_head.html.haml 1.29 KB
Newer Older
1 2 3 4 5 6 7
= content_for :sub_nav do
  .scrolling-tabs-container.sub-nav-scroll
    = render 'shared/nav_scroll'
    .nav-links.sub-nav.scrolling-tabs
      %ul{ class: (container_class) }
        - if project_nav_tab?(:issues) && !current_controller?(:merge_requests)
          = nav_link(controller: :issues) do
8
            = link_to project_issues_path(@project), title: 'Issues' do
9
              %span
10
                List
11

12
          = nav_link(controller: :boards) do
Luke "Jared" Bennett's avatar
Luke "Jared" Bennett committed
13
            -# EE should use plural "Boards"
14
            = link_to project_boards_path(@project), title: 'Boards' do
15
              %span
Luke "Jared" Bennett's avatar
Luke "Jared" Bennett committed
16
                Boards
17

18 19
        - if project_nav_tab?(:merge_requests) && current_controller?(:merge_requests)
          = nav_link(controller: :merge_requests) do
20
            = link_to project_merge_requests_path(@project), title: 'Merge Requests' do
21 22
              %span
                Merge Requests
23

24 25
        - if project_nav_tab? :labels
          = nav_link(controller: :labels) do
26
            = link_to project_labels_path(@project), title: 'Labels' do
27 28
              %span
                Labels
29

30 31
        - if project_nav_tab? :milestones
          = nav_link(controller: :milestones) do
32
            = link_to project_milestones_path(@project), title: 'Milestones' do
33 34
              %span
                Milestones