summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-09-01 15:17:45 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-09-01 15:17:45 +0000
commitb5e90972d88c69a1ef2c9e90879e8926d192acff (patch)
tree9370cd677e484caf9ec4576d5e8f5ffcd04aab1f /app/views
parentdaa8eaa9aebcc284e2904d1258cbfdd78ea23876 (diff)
downloadredmine-b5e90972d88c69a1ef2c9e90879e8926d192acff.tar.gz
redmine-b5e90972d88c69a1ef2c9e90879e8926d192acff.zip
Refactor: move method, ProjectsController#add_file to FilesController#new.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4052 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/files/index.html.erb2
-rw-r--r--app/views/files/new.html.erb (renamed from app/views/projects/add_file.rhtml)2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/files/index.html.erb b/app/views/files/index.html.erb
index 2b2e5e870..66f5d12b9 100644
--- a/app/views/files/index.html.erb
+++ b/app/views/files/index.html.erb
@@ -1,5 +1,5 @@
<div class="contextual">
-<%= link_to_if_authorized l(:label_attachment_new), {:controller => 'projects', :action => 'add_file', :id => @project}, :class => 'icon icon-add' %>
+<%= link_to_if_authorized l(:label_attachment_new), {:controller => 'files', :action => 'new', :id => @project}, :class => 'icon icon-add' %>
</div>
<h2><%=l(:label_attachment_plural)%></h2>
diff --git a/app/views/projects/add_file.rhtml b/app/views/files/new.html.erb
index ab9c7352d..bbb3b1733 100644
--- a/app/views/projects/add_file.rhtml
+++ b/app/views/files/new.html.erb
@@ -2,7 +2,7 @@
<%= error_messages_for 'attachment' %>
<div class="box">
-<% form_tag({ :action => 'add_file', :id => @project }, :multipart => true, :class => "tabular") do %>
+<% form_tag({ :action => 'new', :id => @project }, :multipart => true, :class => "tabular") do %>
<% if @versions.any? %>
<p><label for="version_id"><%=l(:field_version)%></label>