7f8a520f8a
Rename btn-new, btn-create and btn-save to btn-success Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
9 lines
501 B
Text
9 lines
501 B
Text
- if (@page && @page.persisted?)
|
|
- if can?(current_user, :create_wiki, @project)
|
|
= link_to '#modal-new-wiki', class: "add-new-wiki btn btn-success", "data-toggle" => "modal" do
|
|
= s_("Wiki|New page")
|
|
= link_to project_wiki_history_path(@project, @page), class: "btn" do
|
|
= s_("Wiki|Page history")
|
|
- if can?(current_user, :create_wiki, @project) && @page.latest? && @valid_encoding
|
|
= link_to project_wiki_edit_path(@project, @page), class: "btn js-wiki-edit" do
|
|
= _("Edit")
|