2017-08-17 22:00:37 +05:30
|
|
|
= 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 }
|
|
|
|
= nav_link(path: 'projects#show') do
|
2017-09-10 17:25:29 +05:30
|
|
|
= link_to project_path(@project), title: _('Project home'), class: 'shortcuts-project' do
|
|
|
|
%span= _('Home')
|
2017-08-17 22:00:37 +05:30
|
|
|
|
|
|
|
= nav_link(path: 'projects#activity') do
|
2017-09-10 17:25:29 +05:30
|
|
|
= link_to activity_project_path(@project), title: _('Activity'), class: 'shortcuts-project-activity' do
|
|
|
|
%span= _('Activity')
|
2017-08-17 22:00:37 +05:30
|
|
|
|
|
|
|
- if can?(current_user, :read_cycle_analytics, @project)
|
|
|
|
= nav_link(path: 'cycle_analytics#show') do
|
2017-09-10 17:25:29 +05:30
|
|
|
= link_to project_cycle_analytics_path(@project), title: _('Cycle Analytics'), class: 'shortcuts-project-cycle-analytics' do
|
|
|
|
%span= _('Cycle Analytics')
|