gitlab-org--gitlab-foss/app/views/projects/wikis/_main_links.html.haml

10 lines
478 B
Text
Raw Normal View History

- if (@page && @page.persisted?)
2016-06-16 10:57:42 -04:00
- if can?(current_user, :create_wiki, @project)
= link_to '#modal-new-wiki', class: "add-new-wiki btn btn-new", "data-toggle" => "modal" do
2017-09-27 13:13:29 -04:00
= s_("Wiki|New page")
= link_to project_wiki_history_path(@project, @page), class: "btn" do
2017-09-27 13:13:29 -04:00
= s_("Wiki|Page history")
- if can?(current_user, :create_wiki, @project) && @page.latest?
= link_to project_wiki_edit_path(@project, @page), class: "btn js-wiki-edit" do
2017-09-27 13:13:29 -04:00
= _("Edit")