debian-mirror-gitlab/app/views/shared/wikis/_form.html.haml

7 lines
638 B
Text
Raw Normal View History

2021-04-29 21:17:54 +05:30
- page_info = { last_commit_sha: @page.last_commit_sha, persisted: @page.persisted?, title: @page.title, content: @page.content || '', format: @page.format.to_s, uploads_path: uploads_path, path: wiki_page_path(@wiki, @page), wiki_path: wiki_path(@wiki), help_path: help_page_path('user/project/wiki/index'), markdown_help_path: help_page_path('user/markdown'), markdown_preview_path: wiki_page_path(@wiki, @page, action: :preview_markdown), create_path: wiki_path(@wiki, action: :create) }
2017-08-17 22:00:37 +05:30
2021-04-29 21:17:54 +05:30
.gl-mt-3
2020-04-08 14:13:33 +05:30
= form_errors(@page, truncate: :title)
2014-09-02 18:07:02 +05:30
2021-04-29 21:17:54 +05:30
#js-wiki-form{ data: { page_info: page_info.to_json, format_options: Wiki::MARKUPS.to_json } }