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

27 lines
902 B
Text
Raw Normal View History

2020-07-28 23:09:34 +05:30
- wiki_page_title @page, @page.persisted? ? _('Edit') : _('New')
2021-01-03 14:25:43 +05:30
- add_page_specific_style 'page_bundles/wiki'
2016-04-02 18:10:28 +05:30
2021-04-17 20:07:23 +05:30
- if @error
#js-wiki-error{ data: { error: @error, wiki_page_path: wiki_page_path(@wiki, @page) } }
2017-08-17 22:00:37 +05:30
2021-11-18 22:05:49 +05:30
.js-wiki-edit-page.wiki-page-header.top-area.has-sidebar-toggle.flex-column.flex-lg-row
2020-07-28 23:09:34 +05:30
= wiki_sidebar_toggle_button
2017-09-10 17:25:29 +05:30
2021-09-04 01:27:46 +05:30
%h3.page-title.gl-flex-grow-1
2021-03-08 18:12:59 +05:30
- if @page.persisted?
= link_to_wiki_page @page
%span.light
·
= s_("Wiki|Edit Page")
- else
= s_("Wiki|Create New Page")
2016-04-02 18:10:28 +05:30
2019-12-04 20:38:33 +05:30
.nav-controls.pb-md-3.pb-lg-0
2017-09-10 17:25:29 +05:30
- if @page.persisted?
2021-09-30 23:02:18 +05:30
- if can?(current_user, :create_wiki, @wiki.container)
2020-06-23 00:09:42 +05:30
#delete-wiki-modal-wrapper{ data: { delete_wiki_url: wiki_page_path(@wiki, @page), page_title: @page.human_title } }
2014-09-02 18:07:02 +05:30
2020-06-23 00:09:42 +05:30
= render 'shared/wikis/form', uploads_path: wiki_attachment_upload_url
2017-08-17 22:00:37 +05:30
2021-03-08 18:12:59 +05:30
= render 'shared/wikis/sidebar', editing: true