Commit 205a0775 authored by Bryce Johnson's avatar Bryce Johnson

Only show nav_link if service desk has been activated for project.

parent 826566a0
......@@ -138,9 +138,10 @@
%span
Milestones
= nav_link(controller: [ :issues, :service_desk ]) do
= link_to service_desk_project_issues_url(@project), title: 'Service Desk' do
%span Service Desk
- if @project.service_desk_enabled?
= nav_link(controller: [ :issues, :service_desk ]) do
= link_to service_desk_project_issues_url(@project), title: 'Service Desk' do
%span Service Desk
- if project_nav_tab? :merge_requests
= nav_link(controller: @project.issues_enabled? ? :merge_requests : [:merge_requests, :labels, :milestones]) do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment