2018-06-15 07:47:37 -04:00
|
|
|
- @content_class = "limit-container-width" unless fluid_layout
|
2018-11-27 01:22:16 -05:00
|
|
|
- add_to_breadcrumbs _("Wiki"), project_wiki_path(@project, @page)
|
|
|
|
- breadcrumb_title @page.persisted? ? _("Edit") : _("New")
|
|
|
|
- page_title @page.persisted? ? _("Edit") : _("New"), @page.human_title, _("Wiki")
|
2016-02-07 11:57:28 -05:00
|
|
|
|
2018-02-05 12:17:21 -05:00
|
|
|
= wiki_page_errors(@error)
|
2017-03-04 09:03:14 -05:00
|
|
|
|
2019-08-14 12:09:48 -04:00
|
|
|
.wiki-page-header.top-area.has-sidebar-toggle
|
2017-06-12 07:47:46 -04:00
|
|
|
%button.btn.btn-default.sidebar-toggle.js-sidebar-wiki-toggle{ role: "button", type: "button" }
|
|
|
|
= icon('angle-double-left')
|
2016-11-14 16:33:21 -05:00
|
|
|
|
2017-06-12 07:47:46 -04:00
|
|
|
.nav-text
|
|
|
|
%h2.wiki-page-title
|
|
|
|
- if @page.persisted?
|
2018-11-27 01:22:16 -05:00
|
|
|
= link_to @page.human_title, project_wiki_path(@project, @page)
|
2017-06-12 07:47:46 -04:00
|
|
|
- else
|
2018-11-27 01:22:16 -05:00
|
|
|
= @page.human_title
|
2017-06-12 07:47:46 -04:00
|
|
|
%span.light
|
|
|
|
·
|
2016-06-15 10:31:41 -04:00
|
|
|
- if @page.persisted?
|
2017-09-27 13:13:29 -04:00
|
|
|
= s_("Wiki|Edit Page")
|
2016-06-15 10:31:41 -04:00
|
|
|
- else
|
2017-09-27 13:13:29 -04:00
|
|
|
= s_("Wiki|Create Page")
|
2016-02-07 11:57:28 -05:00
|
|
|
|
2017-06-12 07:47:46 -04:00
|
|
|
.nav-controls
|
|
|
|
- if @page.persisted?
|
2017-06-29 13:06:35 -04:00
|
|
|
= link_to project_wiki_history_path(@project, @page), class: "btn" do
|
2017-09-27 13:13:29 -04:00
|
|
|
= s_("Wiki|Page history")
|
2017-06-12 07:47:46 -04:00
|
|
|
- if can?(current_user, :admin_wiki, @project)
|
2018-11-27 01:22:16 -05:00
|
|
|
#delete-wiki-modal-wrapper{ data: { delete_wiki_url: project_wiki_path(@project, @page), page_title: @page.human_title } }
|
2013-01-11 14:03:43 -05:00
|
|
|
|
2018-09-03 00:09:24 -04:00
|
|
|
= render 'form', uploads_path: wiki_attachment_upload_url
|
2016-11-14 16:33:21 -05:00
|
|
|
|
|
|
|
= render 'sidebar'
|