BigW Consortium Gitlab

_head.html.haml 1.28 KB
Newer Older
1 2 3 4
= content_for :sub_nav do
  .scrolling-tabs-container.sub-nav-scroll
    = render 'shared/nav_scroll'
    .nav-links.sub-nav.scrolling-tabs
5
      %ul{ class: container_class }
6 7 8 9 10 11 12
        - can_edit = can?(current_user, :admin_project, @project)
        - if can_edit
          = nav_link(controller: :projects) do
            = link_to edit_project_path(@project), title: 'General' do
              %span
                General
        - if can_edit
13
          = nav_link(controller: [:integrations, :services, :hooks, :hook_logs]) do
14 15 16 17
            = link_to project_settings_integrations_path(@project), title: 'Integrations' do
              %span
                Integrations
          = nav_link(controller: :repository) do
18
            = link_to project_settings_repository_path(@project), title: 'Repository' do
19 20 21 22
              %span
                Repository
          - if @project.feature_available?(:builds, current_user)
            = nav_link(controller: :ci_cd) do
23
              = link_to project_settings_ci_cd_path(@project), title: 'Pipelines' do
24
                %span
25
                  Pipelines
26
          - if @project.pages_available?
27
            = nav_link(controller: :pages) do
28
              = link_to project_pages_path(@project), title: 'Pages' do
29 30
                %span
                  Pages