BigW Consortium Gitlab

_head.html.haml 1.17 KB
Newer Older
1 2
.nav-links.sub-nav
  %ul{ class: (container_class) }
3
    - if project_nav_tab?(:issues) && !current_controller?(:merge_requests)
4
      = nav_link(controller: :issues) do
5
        = link_to namespace_project_issues_path(@project.namespace, @project), title: 'Issues' do
6 7 8
          %span
            Issues

9 10 11 12 13
      = nav_link(controller: :boards) do
        = link_to namespace_project_board_path(@project.namespace, @project), title: 'Board' do
          %span
            Board

14
    - if project_nav_tab?(:merge_requests) && current_controller?(:merge_requests)
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
      = nav_link(controller: :merge_requests) do
        = link_to namespace_project_merge_requests_path(@project.namespace, @project), title: 'Merge Requests' do
          %span
            Merge Requests

    - if project_nav_tab? :labels
      = nav_link(controller: :labels) do
        = link_to namespace_project_labels_path(@project.namespace, @project), title: 'Labels' do
          %span
            Labels

    - if project_nav_tab? :milestones
      = nav_link(controller: :milestones) do
        = link_to namespace_project_milestones_path(@project.namespace, @project), title: 'Milestones' do
          %span
            Milestones