2016-09-29 11:54:45 -04:00
|
|
|
= content_for :sub_nav do
|
|
|
|
.scrolling-tabs-container.sub-nav-scroll
|
|
|
|
= render 'shared/nav_scroll'
|
2017-03-22 18:30:52 -04:00
|
|
|
.nav-links.sub-nav.scrolling-tabs
|
2016-09-29 11:54:45 -04:00
|
|
|
%ul{ class: (container_class) }
|
|
|
|
- if project_nav_tab? :pipelines
|
2017-03-02 12:57:01 -05:00
|
|
|
= nav_link(path: 'pipelines#index', controller: :pipelines) do
|
2016-09-29 11:54:45 -04:00
|
|
|
= link_to project_pipelines_path(@project), title: 'Pipelines', class: 'shortcuts-pipelines' do
|
|
|
|
%span
|
|
|
|
Pipelines
|
2016-05-28 13:26:08 -04:00
|
|
|
|
2016-09-29 11:54:45 -04:00
|
|
|
- if project_nav_tab? :builds
|
2017-03-02 12:57:01 -05:00
|
|
|
= nav_link(path: 'builds#index', controller: :builds) do
|
2017-01-26 06:52:58 -05:00
|
|
|
= link_to project_builds_path(@project), title: 'Jobs', class: 'shortcuts-builds' do
|
2016-09-29 11:54:45 -04:00
|
|
|
%span
|
2017-01-25 10:51:11 -05:00
|
|
|
Jobs
|
2016-06-10 17:36:54 -04:00
|
|
|
|
2016-09-29 11:54:45 -04:00
|
|
|
- if project_nav_tab? :environments
|
2017-03-02 12:57:01 -05:00
|
|
|
= nav_link(path: 'environments#index', controller: :environments) do
|
2016-09-29 11:54:45 -04:00
|
|
|
= link_to project_environments_path(@project), title: 'Environments', class: 'shortcuts-environments' do
|
|
|
|
%span
|
|
|
|
Environments
|
2016-09-14 17:03:42 -04:00
|
|
|
|
2017-03-02 12:57:01 -05:00
|
|
|
- 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
|
2016-09-29 11:54:45 -04:00
|
|
|
%span
|
2017-03-02 12:57:01 -05:00
|
|
|
Charts
|