33 lines
1.2 KiB
Text
33 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
|
|
%ul{ class: (container_class) }
|
|
- if project_nav_tab?(:issues) && !current_controller?(:merge_requests)
|
|
= nav_link(controller: :issues) do
|
|
= link_to project_issues_path(@project), title: 'Issues' do
|
|
%span
|
|
List
|
|
|
|
= nav_link(controller: :boards) do
|
|
= link_to project_boards_path(@project), title: 'Board' do
|
|
%span
|
|
Board
|
|
|
|
- if project_nav_tab?(:merge_requests) && current_controller?(:merge_requests)
|
|
= nav_link(controller: :merge_requests) do
|
|
= link_to project_merge_requests_path(@project), title: 'Merge Requests' do
|
|
%span
|
|
Merge Requests
|
|
|
|
- if project_nav_tab? :labels
|
|
= nav_link(controller: :labels) do
|
|
= link_to project_labels_path(@project), title: 'Labels' do
|
|
%span
|
|
Labels
|
|
|
|
- if project_nav_tab? :milestones
|
|
= nav_link(controller: :milestones) do
|
|
= link_to project_milestones_path(@project), title: 'Milestones' do
|
|
%span
|
|
Milestones
|