2014-09-02 18:07:02 +05:30
%span.pull-right
- if (@page && @page.persisted?)
2015-09-25 12:07:36 +05:30
= link_to namespace_project_wiki_history_path(@project.namespace, @project, @page), class: "btn btn-grouped" do
2014-09-02 18:07:02 +05:30
Page History
2015-09-11 14:41:01 +05:30
- if can?(current_user, :create_wiki, @project)
2015-09-25 12:07:36 +05:30
= link_to namespace_project_wiki_edit_path(@project.namespace, @project, @page), class: "btn btn-grouped" do
2015-04-26 12:48:37 +05:30
%i.fa.fa-pencil-square-o
2014-09-02 18:07:02 +05:30
Edit
2015-12-23 02:04:40 +05:30
- 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