6 lines
441 B
Text
6 lines
441 B
Text
- if @page&.persisted?
|
|
= link_to wiki_page_path(@wiki, @page, action: :history), class: "btn gl-button", 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-success btn-inverted", role: "button", data: { qa_selector: 'new_page_button' } do
|
|
= s_("Wiki|New page")
|