summaryrefslogtreecommitdiff
path: root/app/views/projects/wikis/_form.html.haml
diff options
context:
space:
mode:
authorPaul Slaughter <pslaughter@gitlab.com>2018-09-02 23:09:24 -0500
committerPaul Slaughter <pslaughter@gitlab.com>2018-09-06 09:41:48 -0500
commit46f481661511cec49ed94e8901252dd7db988d72 (patch)
treee9f964a3b3ac7201e85328bb116ad3b3d48317b8 /app/views/projects/wikis/_form.html.haml
parentbac9a1dde1e75d057e212ab5d3b9b478d3981e1d (diff)
downloadgitlab-ce-46f481661511cec49ed94e8901252dd7db988d72.tar.gz
Refactor uploads_path to form data in wikis/edit
Diffstat (limited to 'app/views/projects/wikis/_form.html.haml')
-rw-r--r--app/views/projects/wikis/_form.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/wikis/_form.html.haml b/app/views/projects/wikis/_form.html.haml
index 7fb80450161..35872d70db4 100644
--- a/app/views/projects/wikis/_form.html.haml
+++ b/app/views/projects/wikis/_form.html.haml
@@ -7,7 +7,7 @@
= form_for [@project.namespace.becomes(Namespace), @project, @page], method: @page.persisted? ? :put : :post,
html: { class: 'wiki-form common-note-form prepend-top-default js-quick-submit' },
- data: { markdown_version: markdown_version } do |f|
+ data: { markdown_version: markdown_version, uploads_path: uploads_path } do |f|
= form_errors(@page)
- if @page.persisted?