]> source.dussan.org Git - redmine.git/commitdiff
Add a link to projects administration page on projects page (#32306).
authorGo MAEDA <maeda@farend.jp>
Sun, 27 Oct 2019 00:06:06 +0000 (00:06 +0000)
committerGo MAEDA <maeda@farend.jp>
Sun, 27 Oct 2019 00:06:06 +0000 (00:06 +0000)
Patch by Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@18873 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/projects_helper.rb

index 335db8b0b8c9f0faad6cc355a17659e809d6568a..7e59d6ea020b3a9b7b5c6cf26af041b4b5e8e2cc 100644 (file)
@@ -53,6 +53,9 @@ module ProjectsHelper
     if User.current.allowed_to?(:add_project, nil, :global => true)
       links << link_to(l(:label_project_new), new_project_path, :class => 'icon icon-add')
     end
+    if User.current.admin?
+      links << link_to(l(:label_administration), admin_projects_path, :class => 'icon icon-settings')
+    end
     links
   end