BigW Consortium Gitlab

_main_links.html.haml 680 Bytes
Newer Older
1
%span.pull-right
2
  - if (@page && @page.persisted?)
Stan Hu committed
3
    = link_to namespace_project_wiki_history_path(@project.namespace, @project, @page), class: "btn btn-grouped" do
4
      Page History
5
    - if can?(current_user, :create_wiki, @project)
Stan Hu committed
6
      = link_to namespace_project_wiki_edit_path(@project.namespace, @project, @page), class: "btn btn-grouped" do
7
        %i.fa.fa-pencil-square-o
8
        Edit
Douwe Maan committed
9 10 11 12
    - 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