debian-mirror-gitlab/app/views/shared/wikis/_main_links.html.haml

7 lines
441 B
Text
Raw Normal View History

2020-06-23 00:09:42 +05:30
- if @page&.persisted?
2021-01-03 14:25:43 +05:30
= 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")
2020-06-23 00:09:42 +05:30
- if can?(current_user, :create_wiki, @wiki.container)
2021-01-03 14:25:43 +05:30
= link_to wiki_path(@wiki, action: :new), class: "btn gl-button btn-success btn-inverted", role: "button", data: { qa_selector: 'new_page_button' } do
2020-06-23 00:09:42 +05:30
= s_("Wiki|New page")