2016-02-07 11:57:28 -05:00
|
|
|
- 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")
|
2017-06-29 13:06:35 -04:00
|
|
|
= link_to project_wiki_history_path(@project, @page), class: "btn" do
|
2017-09-27 13:13:29 -04:00
|
|
|
= s_("Wiki|Page history")
|
2017-03-15 01:44:05 -04:00
|
|
|
- if can?(current_user, :create_wiki, @project) && @page.latest?
|
2017-06-29 13:06:35 -04:00
|
|
|
= link_to project_wiki_edit_path(@project, @page), class: "btn js-wiki-edit" do
|
2017-09-27 13:13:29 -04:00
|
|
|
= _("Edit")
|