Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_main_links.html.haml « wikis « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3bbd8042c3a4b906fdd3380a355736952677cb60 (plain)
1
2
3
4
5
6
7
8
9
- if (@page && @page.persisted?)
  - if can?(current_user, :create_wiki, @project)
    = link_to '#modal-new-wiki', class: "add-new-wiki btn btn-new", "data-toggle" => "modal" do
      New page
  = link_to project_wiki_history_path(@project, @page), class: "btn" do
    Page history
  - if can?(current_user, :create_wiki, @project) && @page.latest?
    = link_to project_wiki_edit_path(@project, @page), class: "btn js-wiki-edit" do
      Edit