diff options
author | Christiaan Van den Poel <christiaan.vandenpoel@gmail.com> | 2018-01-08 12:06:25 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-01-08 12:06:25 +0300 |
commit | 66ebb206b09f83288ee6acbd6d11b2963ae43c9b (patch) | |
tree | 7447b9e0647bebbe0eb5a59af0f068a35ce11e25 /app/views | |
parent | 15f7f52b4034d4ede3b923e95df6884f36194245 (diff) |
disables the shortcut to the issue boards when issues are disabled
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/layouts/nav/sidebar/_project.html.haml | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/app/views/layouts/nav/sidebar/_project.html.haml b/app/views/layouts/nav/sidebar/_project.html.haml index be39f577ba7..1fa3a3041fd 100644 --- a/app/views/layouts/nav/sidebar/_project.html.haml +++ b/app/views/layouts/nav/sidebar/_project.html.haml @@ -299,9 +299,10 @@ Charts -# Shortcut to Issues > New Issue - %li.hidden - = link_to new_project_issue_path(@project), class: 'shortcuts-new-issue' do - Create a new issue + - if project_nav_tab?(:issues) + %li.hidden + = link_to new_project_issue_path(@project), class: 'shortcuts-new-issue' do + Create a new issue -# Shortcut to Pipelines > Jobs - if project_nav_tab? :builds @@ -316,5 +317,6 @@ Commits -# Shortcut to issue boards - %li.hidden - = link_to 'Issue Boards', project_boards_path(@project), title: 'Issue Boards', class: 'shortcuts-issue-boards' + - if project_nav_tab?(:issues) + %li.hidden + = link_to 'Issue Boards', project_boards_path(@project), title: 'Issue Boards', class: 'shortcuts-issue-boards' |