summaryrefslogtreecommitdiffstats
path: root/app/views/admin
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2009-05-03 21:25:37 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2009-05-03 21:25:37 +0000
commitfa7bd1c71dca1e9c74e6d83277336321393dac9f (patch)
tree4f1adac8a535ae7424887ea21f6171a22eb698ea /app/views/admin
parent29c0dae1518ecb8a86d10da8e05caf70f731d746 (diff)
downloadredmine-fa7bd1c71dca1e9c74e6d83277336321393dac9f.tar.gz
redmine-fa7bd1c71dca1e9c74e6d83277336321393dac9f.zip
Added the ability to copy a project in the Project Administration panel.
* Added Copy project button. * Added Project#copy_from to duplicate a project to be modified and saved by the user * Added a ProjectsController#copy based off the add method ** Used Project#copy_from to create a duplicate project in memory * Implemented Project#copy to copy data for a project from another and save it. ** Members ** Project level queries ** Project custom fields * Added a plugin hook for Project#copy. #1125 #1556 #886 #309 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2704 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/admin')
-rw-r--r--app/views/admin/projects.rhtml4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/admin/projects.rhtml b/app/views/admin/projects.rhtml
index 40177a63b..1acef091f 100644
--- a/app/views/admin/projects.rhtml
+++ b/app/views/admin/projects.rhtml
@@ -23,6 +23,7 @@
<th><%=l(:field_created_on)%></th>
<th></th>
<th></th>
+ <th></th>
</tr></thead>
<tbody>
<% for project in @projects %>
@@ -38,6 +39,9 @@
</small>
</td>
<td align="center" style="width:10%">
+ <%= link_to(l(:button_copy), { :controller => 'projects', :action => 'copy', :id => project }, :class => 'icon icon-copy') %>
+ </td>
+ <td align="center" style="width:10%">
<small><%= link_to(l(:button_delete), { :controller => 'projects', :action => 'destroy', :id => project }, :class => 'icon icon-del') %></small>
</td>
</tr>