diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-09-22 14:01:37 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-09-22 14:06:04 +0300 |
commit | f67c2ead87833ac06f2cf722bda71a79f4fc1428 (patch) | |
tree | 58c2970236159d79284308c67f1038c108be23e7 /app/views/shared/boards | |
parent | 408c595292155d7eed1d59cbe0d751c230b6b8bb (diff) |
Don't show it if there's no project.
This is aligning with EE
Diffstat (limited to 'app/views/shared/boards')
-rw-r--r-- | app/views/shared/boards/_show.html.haml | 15 |
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 } |