]> source.dussan.org Git - redmine.git/commitdiff
"New Project" link on Projects page for admin users (#1082).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 8 Jun 2008 22:45:22 +0000 (22:45 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 8 Jun 2008 22:45:22 +0000 (22:45 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1518 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/projects/index.rhtml

index e12b0597914b37defa2cf6a61873abd1b62e9f79..4c68717f5c84f4d7b233c9c6df2038e70c7ddbe3 100644 (file)
@@ -1,4 +1,5 @@
 <div class="contextual">
+    <%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'add'}, :class => 'icon icon-add') + ' |' if User.current.admin? %>
     <%= link_to l(:label_issue_view_all), { :controller => 'issues' } %> |
     <%= link_to l(:label_overall_activity), { :controller => 'projects', :action => 'activity' }%>
 </div>