diff options
author | Annabel Dunstone <annabel.dunstone@gmail.com> | 2016-06-16 20:21:23 +0300 |
---|---|---|
committer | Jacob Schatz <jschatz1@gmail.com> | 2016-06-21 19:15:49 +0300 |
commit | 25ae737df0d8e3af9d40b60896ecb906237142ac (patch) | |
tree | 7551af44be2ac490a31ba075f46704c1619b8ae2 /app/views/projects/wikis | |
parent | 1d7b809a01fcd4479191443598c364c367f17545 (diff) |
Add new page button to wiki home
Diffstat (limited to 'app/views/projects/wikis')
-rw-r--r-- | app/views/projects/wikis/edit.html.haml | 3 |
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' |