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

10 lines
445 B
Text
Raw Normal View History

2016-04-02 18:10:28 +05:30
- if (@page && @page.persisted?)
2016-06-22 15:30:34 +05:30
- if can?(current_user, :create_wiki, @project)
= link_to '#modal-new-wiki', class: "add-new-wiki btn btn-new", "data-toggle" => "modal" do
2017-08-17 22:00:37 +05:30
New page
2017-09-10 17:25:29 +05:30
= link_to project_wiki_history_path(@project, @page), class: "btn" do
2017-08-17 22:00:37 +05:30
Page history
- if can?(current_user, :create_wiki, @project) && @page.latest?
2017-09-10 17:25:29 +05:30
= link_to project_wiki_edit_path(@project, @page), class: "btn js-wiki-edit" do
2016-04-02 18:10:28 +05:30
Edit