summaryrefslogtreecommitdiff
path: root/app/views/shared/wikis/_main_links.html.haml
blob: c1fd8c48c602e50db009f7c741d85b4507463b93 (plain)
1
2
3
4
5
6
- if @page&.persisted?
  = link_to wiki_page_path(@wiki, @page, action: :history), class: "btn gl-button btn-default", role: "button", data: { qa_selector: 'page_history_button' } do
    = s_("Wiki|Page history")
  - if can?(current_user, :create_wiki, @wiki.container)
    = link_to wiki_path(@wiki, action: :new), class: "btn gl-button btn-confirm-secondary", role: "button", data: { qa_selector: 'new_page_button' } do
      = s_("Wiki|New page")