2015-04-30 13:06:18 -04:00
- page_title "Edit", @page.title, "Wiki"
2015-09-17 06:16:24 -04:00
= render "header_title"
2013-06-23 12:47:22 -04:00
= render 'nav'
2014-01-01 15:59:06 -05:00
.pull-right
= render 'main_links'
2013-07-13 01:45:48 -04:00
%h3.page-title
2014-01-01 15:44:30 -05:00
Editing -
2014-04-09 01:14:16 -04:00
%span.light #{@page.title}
2014-01-01 15:44:30 -05:00
%hr
2012-02-19 09:35:31 -05:00
= render 'form'
2013-01-11 14:03:43 -05:00
2013-01-30 09:40:43 -05:00
.pull-right
2014-04-09 07:35:01 -04:00
- if @page.persisted? && can?(current_user, :admin_wiki, @project)
2015-03-14 03:29:32 -04:00
= link_to namespace_project_wiki_path(@project.namespace, @project, @page), data: { confirm: "Are you sure you want to delete this page?"}, method: :delete, class: "btn btn-sm btn-remove" do
2013-03-14 16:24:27 -04:00
Delete this page