2018-11-08 19:23:39 +05:30
|
|
|
- @content_class = "limit-container-width" unless fluid_layout
|
2019-02-15 15:39:39 +05:30
|
|
|
- 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-04-02 18:10:28 +05:30
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
= wiki_page_errors(@error)
|
2017-08-17 22:00:37 +05:30
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
.wiki-page-header.has-sidebar-toggle
|
|
|
|
%button.btn.btn-default.sidebar-toggle.js-sidebar-wiki-toggle{ role: "button", type: "button" }
|
|
|
|
= icon('angle-double-left')
|
|
|
|
|
|
|
|
.nav-text
|
|
|
|
%h2.wiki-page-title
|
|
|
|
- if @page.persisted?
|
2019-02-15 15:39:39 +05:30
|
|
|
= link_to @page.human_title, project_wiki_path(@project, @page)
|
2017-09-10 17:25:29 +05:30
|
|
|
- else
|
2019-02-15 15:39:39 +05:30
|
|
|
= @page.human_title
|
2017-09-10 17:25:29 +05:30
|
|
|
%span.light
|
|
|
|
·
|
2016-06-22 15:30:34 +05:30
|
|
|
- if @page.persisted?
|
2018-03-17 18:26:18 +05:30
|
|
|
= s_("Wiki|Edit Page")
|
2016-06-22 15:30:34 +05:30
|
|
|
- else
|
2018-03-17 18:26:18 +05:30
|
|
|
= s_("Wiki|Create Page")
|
2016-04-02 18:10:28 +05:30
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
.nav-controls
|
2019-05-30 16:15:17 +05:30
|
|
|
- if can?(current_user, :create_wiki, @project)
|
|
|
|
= link_to '#modal-new-wiki', class: "add-new-wiki btn btn-success", "data-toggle" => "modal" do
|
|
|
|
= s_("Wiki|New page")
|
2017-09-10 17:25:29 +05:30
|
|
|
- if @page.persisted?
|
|
|
|
= link_to project_wiki_history_path(@project, @page), class: "btn" do
|
2018-03-17 18:26:18 +05:30
|
|
|
= s_("Wiki|Page history")
|
2017-09-10 17:25:29 +05:30
|
|
|
- if can?(current_user, :admin_wiki, @project)
|
2019-02-15 15:39:39 +05:30
|
|
|
#delete-wiki-modal-wrapper{ data: { delete_wiki_url: project_wiki_path(@project, @page), page_title: @page.human_title } }
|
2014-09-02 18:07:02 +05:30
|
|
|
|
2018-11-20 20:47:30 +05:30
|
|
|
= render 'form', uploads_path: wiki_attachment_upload_url
|
2017-08-17 22:00:37 +05:30
|
|
|
|
|
|
|
= render 'sidebar'
|