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 @@ ...@@ -138,9 +138,10 @@
%span %span
Milestones Milestones
= nav_link(controller: [ :issues, :service_desk ]) do - if @project.service_desk_enabled?
= link_to service_desk_project_issues_url(@project), title: 'Service Desk' do = nav_link(controller: [ :issues, :service_desk ]) do
%span Service Desk = link_to service_desk_project_issues_url(@project), title: 'Service Desk' do
%span Service Desk
- if project_nav_tab? :merge_requests - if project_nav_tab? :merge_requests
= nav_link(controller: @project.issues_enabled? ? :merge_requests : [:merge_requests, :labels, :milestones]) do = 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