summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-09-22 19:01:37 +0800
committerLin Jen-Shin <godfat@godfat.org>2017-09-22 19:06:04 +0800
commitf67c2ead87833ac06f2cf722bda71a79f4fc1428 (patch)
tree58c2970236159d79284308c67f1038c108be23e7
parent408c595292155d7eed1d59cbe0d751c230b6b8bb (diff)
downloadgitlab-ce-ee-to-ce-2017-09-22.tar.gz
Don't show it if there's no project.ee-to-ce-2017-09-22
This is aligning with EE
-rw-r--r--app/views/shared/boards/_show.html.haml15
1 files changed, 8 insertions, 7 deletions
diff --git a/app/views/shared/boards/_show.html.haml b/app/views/shared/boards/_show.html.haml
index 2e5e7911981..722890a01e5 100644
--- a/app/views/shared/boards/_show.html.haml
+++ b/app/views/shared/boards/_show.html.haml
@@ -31,10 +31,11 @@
":board-id" => "boardId",
":key" => "_uid" }
= render "shared/boards/components/sidebar"
- %board-add-issues-modal{ "new-issue-path" => new_project_issue_path(@project),
- "milestone-path" => milestones_filter_dropdown_path,
- "label-path" => labels_filter_path,
- "empty-state-svg" => image_path('illustrations/issues.svg'),
- ":issue-link-base" => "issueLinkBase",
- ":root-path" => "rootPath",
- ":project-id" => @project.try(:id) }
+ - if @project
+ %board-add-issues-modal{ "new-issue-path" => new_project_issue_path(@project),
+ "milestone-path" => milestones_filter_dropdown_path,
+ "label-path" => labels_filter_path,
+ "empty-state-svg" => image_path('illustrations/issues.svg'),
+ ":issue-link-base" => "issueLinkBase",
+ ":root-path" => "rootPath",
+ ":project-id" => @project.id }