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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnnabel Dunstone <annabel.dunstone@gmail.com>2016-06-16 20:21:23 +0300
committerJacob Schatz <jschatz1@gmail.com>2016-06-21 19:15:49 +0300
commit25ae737df0d8e3af9d40b60896ecb906237142ac (patch)
tree7551af44be2ac490a31ba075f46704c1619b8ae2 /app/views/projects/wikis
parent1d7b809a01fcd4479191443598c364c367f17545 (diff)
Add new page button to wiki home
Diffstat (limited to 'app/views/projects/wikis')
-rw-r--r--app/views/projects/wikis/edit.html.haml3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/projects/wikis/edit.html.haml b/app/views/projects/wikis/edit.html.haml
index af9d23bbfb3..bf5d09d50c2 100644
--- a/app/views/projects/wikis/edit.html.haml
+++ b/app/views/projects/wikis/edit.html.haml
@@ -15,6 +15,9 @@
Edit Page
.nav-controls
+ - 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
= render 'main_links'