2016-02-07 11:57:28 -05:00
- if (@page && @page.persisted?)
2016-06-16 10:57:42 -04:00
- 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
2016-06-08 14:01:53 -04:00
= link_to namespace_project_wiki_history_path(@project.namespace, @project, @page), class: "btn" do
2016-02-07 11:57:28 -05:00
Page History
- if can?(current_user, :create_wiki, @project)
2016-06-08 14:01:53 -04:00
= link_to namespace_project_wiki_edit_path(@project.namespace, @project, @page), class: "btn" do
2016-02-07 11:57:28 -05:00
Edit
- if 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-remove" do
Delete