BigW Consortium Gitlab

_main_links.html.haml 475 Bytes
Newer Older
1
- if (@page && @page.persisted?)
2 3 4
  - 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
5
  = link_to namespace_project_wiki_history_path(@project.namespace, @project, @page), class: "btn" do
6 7
    Page History
  - if can?(current_user, :create_wiki, @project)
8
    = link_to namespace_project_wiki_edit_path(@project.namespace, @project, @page), class: "btn" do
9
      Edit