summaryrefslogtreecommitdiff
path: root/app/views/projects/wikis/edit.html.haml
blob: 3f1dce1050c1d46975f0e1a402bef6b0b7e328d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
- page_title "Edit", @page.title, "Wiki"
= render 'nav'
.pull-right
  = render 'main_links'
%h3.page-title
  Editing -
  %span.light #{@page.title}
%hr
= render 'form'

.pull-right
  - if @page.persisted? && can?(current_user, :admin_wiki, @project)
    = 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
      Delete this page