]> source.dussan.org Git - redmine.git/commitdiff
rename .rhtml to .html.erb of app/views/attachments/_form.rhtml.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 24 Aug 2011 05:06:50 +0000 (05:06 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 24 Aug 2011 05:06:50 +0000 (05:06 +0000)
:rhtml and :rxml were finally removed as template handlers at Rails 3.1 RC4.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6575 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/attachments/_form.html.erb [new file with mode: 0644]
app/views/attachments/_form.rhtml [deleted file]

diff --git a/app/views/attachments/_form.html.erb b/app/views/attachments/_form.html.erb
new file mode 100644 (file)
index 0000000..b936af1
--- /dev/null
@@ -0,0 +1,10 @@
+<span id="attachments_fields">
+  <span>
+       <%= file_field_tag 'attachments[1][file]', :size => 30, :id => nil, :class => 'file'  -%>
+               <label class="inline"><%= l(:label_optional_description) %><%= text_field_tag 'attachments[1][description]', '', :size => 60, :id => nil, :class => 'description' %></label>
+               <%= link_to_function(image_tag('delete.png'), 'removeFileField(this)', :title => (l(:button_delete))) %>
+       </span>
+</span>
+<small><%= link_to l(:label_add_another_file), '#', :onclick => 'addFileField(); return false;' %>
+(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)
+</small>
diff --git a/app/views/attachments/_form.rhtml b/app/views/attachments/_form.rhtml
deleted file mode 100644 (file)
index b936af1..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<span id="attachments_fields">
-  <span>
-       <%= file_field_tag 'attachments[1][file]', :size => 30, :id => nil, :class => 'file'  -%>
-               <label class="inline"><%= l(:label_optional_description) %><%= text_field_tag 'attachments[1][description]', '', :size => 60, :id => nil, :class => 'description' %></label>
-               <%= link_to_function(image_tag('delete.png'), 'removeFileField(this)', :title => (l(:button_delete))) %>
-       </span>
-</span>
-<small><%= link_to l(:label_add_another_file), '#', :onclick => 'addFileField(); return false;' %>
-(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)
-</small>