From bda78a4679bc947dfd42ab92adfc043afd1d2f60 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 22 Apr 2016 17:47:11 +0000 Subject: Adds "New wiki page" link to create a new wiki page (#5536). git-svn-id: http://svn.redmine.org/redmine/trunk@15346 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/wiki/index.html.erb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/views/wiki/index.html.erb') diff --git a/app/views/wiki/index.html.erb b/app/views/wiki/index.html.erb index 333cc8531..0d6955da1 100644 --- a/app/views/wiki/index.html.erb +++ b/app/views/wiki/index.html.erb @@ -1,4 +1,7 @@
+<% if User.current.allowed_to?(:edit_wiki_pages, @project) %> +<%= link_to l(:label_wiki_page_new), new_project_wiki_page_path(@project), :remote => true, :class => 'icon icon-add' %> +<% end %> <%= watcher_link(@wiki, User.current) %>
-- cgit v1.2.3