2013-03-03 22:43:52 -05:00
%span.pull-right
2014-04-09 07:35:01 -04:00
- if (@page && @page.persisted?)
2015-09-01 20:57:56 -04:00
= link_to namespace_project_wiki_history_path(@project.namespace, @project, @page), class: "btn btn-grouped" do
2013-03-18 16:43:14 -04:00
Page History
2015-06-26 09:55:56 -04:00
- if can?(current_user, :create_wiki, @project)
2015-09-01 20:57:56 -04:00
= link_to namespace_project_wiki_edit_path(@project.namespace, @project, @page), class: "btn btn-grouped" do
2014-10-01 18:21:29 -04:00
%i.fa.fa-pencil-square-o
2013-03-03 22:43:52 -05:00
Edit
2015-12-02 07:59:42 -05:00
- 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
= icon('trash')
Delete