2016-09-29 11:54:45 -04:00
|
|
|
= content_for :sub_nav do
|
|
|
|
.scrolling-tabs-container.sub-nav-scroll
|
|
|
|
= render 'shared/nav_scroll'
|
2016-08-24 18:44:58 -04:00
|
|
|
.nav-links.sub-nav.scrolling-tabs{ class: ('build' if local_assigns.fetch(:build_subnav, false)) }
|
2016-09-29 11:54:45 -04:00
|
|
|
%ul{ class: (container_class) }
|
|
|
|
- if project_nav_tab? :pipelines
|
|
|
|
= nav_link(controller: :pipelines) do
|
|
|
|
= 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
|
|
|
|
= nav_link(controller: %w(builds)) do
|
|
|
|
= link_to project_builds_path(@project), title: 'Builds', class: 'shortcuts-builds' do
|
|
|
|
%span
|
|
|
|
Builds
|
2016-06-10 17:36:54 -04:00
|
|
|
|
2016-09-29 11:54:45 -04:00
|
|
|
- if project_nav_tab? :environments
|
|
|
|
= nav_link(controller: %w(environments)) do
|
|
|
|
= link_to project_environments_path(@project), title: 'Environments', class: 'shortcuts-environments' do
|
|
|
|
%span
|
|
|
|
Environments
|
2016-09-14 17:03:42 -04:00
|
|
|
|
2016-09-29 11:54:45 -04:00
|
|
|
- if can?(current_user, :read_cycle_analytics, @project)
|
|
|
|
= nav_link(controller: %w(cycle_analytics)) do
|
|
|
|
= link_to project_cycle_analytics_path(@project), title: 'Cycle Analytics' do
|
|
|
|
%span
|
|
|
|
Cycle Analytics
|