From 25ae737df0d8e3af9d40b60896ecb906237142ac Mon Sep 17 00:00:00 2001 From: Annabel Dunstone Date: Thu, 16 Jun 2016 12:21:23 -0500 Subject: Add new page button to wiki home --- app/views/projects/wikis/edit.html.haml | 3 +++ 1 file changed, 3 insertions(+) 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' -- cgit v1.2.1