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

10 lines
538 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)
2019-12-04 20:38:33 +05:30
= link_to project_wikis_new_path(@project), class: "add-new-wiki btn btn-success", role: "button" do
2018-03-17 18:26:18 +05:30
= s_("Wiki|New page")
2019-12-04 20:38:33 +05:30
= link_to project_wiki_history_path(@project, @page), class: "btn", role: "button" do
2018-03-17 18:26:18 +05:30
= s_("Wiki|Page history")
2018-11-18 11:00:15 +05:30
- if can?(current_user, :create_wiki, @project) && @page.latest? && @valid_encoding
2019-12-04 20:38:33 +05:30
= link_to project_wiki_edit_path(@project, @page), class: "btn js-wiki-edit", role: "button" do
2018-03-17 18:26:18 +05:30
= _("Edit")