2016-06-15 10:31:41 -04:00
|
|
|
- @no_container = true
|
2015-12-02 07:59:42 -05:00
|
|
|
- page_title "Edit", @page.title.capitalize, "Wiki"
|
2013-06-23 12:47:22 -04:00
|
|
|
= render 'nav'
|
2016-02-07 11:57:28 -05:00
|
|
|
|
2016-06-30 09:01:26 -04:00
|
|
|
%div{ class: container_class }
|
2016-06-15 10:31:41 -04:00
|
|
|
.top-area
|
2016-06-16 10:09:58 -04:00
|
|
|
.nav-text
|
2016-06-15 10:31:41 -04:00
|
|
|
%strong
|
|
|
|
- if @page.persisted?
|
|
|
|
= link_to @page.title.capitalize, namespace_project_wiki_path(@project.namespace, @project, @page)
|
|
|
|
- else
|
|
|
|
= @page.title.capitalize
|
|
|
|
%span.light
|
|
|
|
·
|
|
|
|
Edit Page
|
2016-02-07 11:57:28 -05:00
|
|
|
|
2016-06-15 10:31:41 -04:00
|
|
|
.nav-controls
|
2016-06-24 15:44:02 -04:00
|
|
|
- if !(@page && @page.persisted?)
|
|
|
|
- if can?(current_user, :create_wiki, @project)
|
|
|
|
= link_to '#modal-new-wiki', class: "add-new-wiki btn btn-new", "data-toggle" => "modal" do
|
|
|
|
New Page
|
2013-01-11 14:03:43 -05:00
|
|
|
|
2016-06-15 10:31:41 -04:00
|
|
|
= render 'form'
|