BigW Consortium Gitlab

_head.html.haml 1.23 KB
Newer Older
1 2 3
= content_for :sub_nav do
  .scrolling-tabs-container.sub-nav-scroll
    = render 'shared/nav_scroll'
4
    .nav-links.sub-nav.scrolling-tabs
5 6
      %ul{ class: (container_class) }
        - if project_nav_tab? :pipelines
7
          = nav_link(path: 'pipelines#index', controller: :pipelines) do
8 9 10
            = link_to project_pipelines_path(@project), title: 'Pipelines', class: 'shortcuts-pipelines' do
              %span
                Pipelines
11

12
        - if project_nav_tab? :builds
13
          = nav_link(controller: :builds) do
Filipa Lacerda committed
14
            = link_to project_builds_path(@project), title: 'Jobs', class: 'shortcuts-builds' do
15
              %span
16
                Jobs
17

18
        - if project_nav_tab? :environments
19
          = nav_link(controller: :environments) do
20 21 22
            = link_to project_environments_path(@project), title: 'Environments', class: 'shortcuts-environments' do
              %span
                Environments
23

24 25 26
        - if @project.feature_available?(:builds, current_user) && !@project.empty_repo?
          = nav_link(path: 'pipelines#charts') do
            = link_to charts_namespace_project_pipelines_path(@project.namespace, @project), title: 'Charts', class: 'shortcuts-pipelines-charts' do
27
              %span
28
                Charts