summaryrefslogtreecommitdiff
path: root/app/views/shared/wikis/edit.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/shared/wikis/edit.html.haml')
-rw-r--r--app/views/shared/wikis/edit.html.haml3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/shared/wikis/edit.html.haml b/app/views/shared/wikis/edit.html.haml
index c2b0e474c03..4bdeee3996f 100644
--- a/app/views/shared/wikis/edit.html.haml
+++ b/app/views/shared/wikis/edit.html.haml
@@ -1,7 +1,8 @@
- wiki_page_title @page, @page.persisted? ? _('Edit') : _('New')
- add_page_specific_style 'page_bundles/wiki'
-= wiki_page_errors(@error)
+- if @error
+ #js-wiki-error{ data: { error: @error, wiki_page_path: wiki_page_path(@wiki, @page) } }
.wiki-page-header.top-area.has-sidebar-toggle.flex-column.flex-lg-row
= wiki_sidebar_toggle_button