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

10 lines
564 B
Text
Raw Normal View History

2016-04-02 18:10:28 +05:30
- if (@page && @page.persisted?)
= link_to namespace_project_wiki_history_path(@project.namespace, @project, @page), class: "btn" do
2016-04-02 18:10:28 +05:30
Page History
- if can?(current_user, :create_wiki, @project)
= link_to namespace_project_wiki_edit_path(@project.namespace, @project, @page), class: "btn" do
2016-04-02 18:10:28 +05:30
Edit
- if can?(current_user, :admin_wiki, @project)
= link_to namespace_project_wiki_path(@project.namespace, @project, @page), data: { confirm: "Are you sure you want to delete this page?"}, method: :delete, class: "btn btn-remove" do
Delete