summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2018-02-14 10:00:53 +0000
committerSean McGivern <sean@mcgivern.me.uk>2018-02-14 10:00:53 +0000
commite7595c10bc14cd32c456b9c6a94e227d41d6d09a (patch)
tree33679b105bebd4338dc217da35b9740d8cc3154f /app/views
parent7da1a3d7a30976090d437d7a0fcefe7ac2548ab3 (diff)
parent499d0501854226c018936a56f02e98bd00988742 (diff)
downloadgitlab-ce-e7595c10bc14cd32c456b9c6a94e227d41d6d09a.tar.gz
Merge branch '37050-ext-issue-tracker' into 'master'
Display a link to external issue tracker when enabled Closes #37050 See merge request gitlab-org/gitlab-ce!17030
Diffstat (limited to 'app/views')
-rw-r--r--app/views/layouts/nav/sidebar/_project.html.haml13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/views/layouts/nav/sidebar/_project.html.haml b/app/views/layouts/nav/sidebar/_project.html.haml
index 2b98cb9de99..059571f795f 100644
--- a/app/views/layouts/nav/sidebar/_project.html.haml
+++ b/app/views/layouts/nav/sidebar/_project.html.haml
@@ -127,6 +127,19 @@
= link_to project_milestones_path(@project), title: 'Milestones' do
%span
Milestones
+ - if project_nav_tab? :external_issue_tracker
+ = nav_link do
+ - issue_tracker = @project.external_issue_tracker
+ = link_to issue_tracker.issue_tracker_path, class: 'shortcuts-external_tracker' do
+ .nav-icon-container
+ = sprite_icon('issue-external')
+ %span.nav-item-name
+ = issue_tracker.title
+ %ul.sidebar-sub-level-items.is-fly-out-only
+ = nav_link(html_options: { class: "fly-out-top-item" } ) do
+ = link_to issue_tracker.issue_tracker_path do
+ %strong.fly-out-top-item-name
+ = issue_tracker.title
- if project_nav_tab? :merge_requests
= nav_link(controller: @project.issues_enabled? ? :merge_requests : [:merge_requests, :labels, :milestones]) do