Commit 17251d04 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'ee-to-ce-2017-09-22' into 'master'

Don't show %board-add-issues-modal if there's no project

See merge request gitlab-org/gitlab-ce!14442
parents a0eebff8 f67c2ead
...@@ -31,10 +31,11 @@ ...@@ -31,10 +31,11 @@
":board-id" => "boardId", ":board-id" => "boardId",
":key" => "_uid" } ":key" => "_uid" }
= render "shared/boards/components/sidebar" = render "shared/boards/components/sidebar"
%board-add-issues-modal{ "new-issue-path" => new_project_issue_path(@project), - if @project
"milestone-path" => milestones_filter_dropdown_path, %board-add-issues-modal{ "new-issue-path" => new_project_issue_path(@project),
"label-path" => labels_filter_path, "milestone-path" => milestones_filter_dropdown_path,
"empty-state-svg" => image_path('illustrations/issues.svg'), "label-path" => labels_filter_path,
":issue-link-base" => "issueLinkBase", "empty-state-svg" => image_path('illustrations/issues.svg'),
":root-path" => "rootPath", ":issue-link-base" => "issueLinkBase",
":project-id" => @project.try(:id) } ":root-path" => "rootPath",
":project-id" => @project.id }
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