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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
450 B
Text
Raw Normal View History

2020-06-23 00:09:42 +05:30
- if @page&.persisted?
2022-06-21 17:19:12 +05:30
= link_to wiki_page_path(@wiki, @page, action: :history), class: "btn gl-button btn-default", role: "button", data: { qa_selector: 'page_history_button' } do
2021-01-03 14:25:43 +05:30
= s_("Wiki|Page history")
2020-06-23 00:09:42 +05:30
- if can?(current_user, :create_wiki, @wiki.container)
2021-04-17 20:07:23 +05:30
= link_to wiki_path(@wiki, action: :new), class: "btn gl-button btn-confirm-secondary", role: "button", data: { qa_selector: 'new_page_button' } do
2020-06-23 00:09:42 +05:30
= s_("Wiki|New page")