2016-02-07 16:57:28 +00:00
|
|
|
- if (@page && @page.persisted?)
|
2016-06-16 14:57:42 +00: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 17:13:29 +00:00
|
|
|
= s_("Wiki|New page")
|
2017-06-29 17:06:35 +00:00
|
|
|
= link_to project_wiki_history_path(@project, @page), class: "btn" do
|
2017-09-27 17:13:29 +00:00
|
|
|
= s_("Wiki|Page history")
|
2018-07-31 06:08:19 +00:00
|
|
|
- if can?(current_user, :create_wiki, @project) && @page.latest? && @valid_encoding
|
2017-06-29 17:06:35 +00:00
|
|
|
= link_to project_wiki_edit_path(@project, @page), class: "btn js-wiki-edit" do
|
2017-09-27 17:13:29 +00:00
|
|
|
= _("Edit")
|