c5f5ce8807
Rename Build to Job Replace "Builds" by "Jobs" and fix broken specs Replace "Builds" by "Jobs" Fix broken spinach test Fix broken test Remove `˙` at the beginning of the file Fix broken spinach test Fix broken tests Changes after review
28 lines
1.2 KiB
Text
28 lines
1.2 KiB
Text
= content_for :sub_nav do
|
|
.scrolling-tabs-container.sub-nav-scroll
|
|
= render 'shared/nav_scroll'
|
|
.nav-links.sub-nav.scrolling-tabs{ class: ('build' if local_assigns.fetch(:build_subnav, false)) }
|
|
%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
|
|
|
|
- if project_nav_tab? :builds
|
|
= nav_link(controller: %w(builds)) do
|
|
= link_to project_builds_path(@project), title: 'Jobs', class: 'shortcuts-builds' do
|
|
%span
|
|
Jobs
|
|
|
|
- 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
|
|
|
|
- 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
|