summaryrefslogtreecommitdiffstats
path: root/app/views/documents
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-01-26 20:02:49 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-01-26 20:02:49 +0000
commit0d55613359d98958e6b21174a30235a8431595d8 (patch)
tree37f4fd094c535d22878ce51039bdafe86d7908e9 /app/views/documents
parent845460b16525dc350a12a9f1bde2109caa1a53b6 (diff)
downloadredmine-0d55613359d98958e6b21174a30235a8431595d8.tar.gz
redmine-0d55613359d98958e6b21174a30235a8431595d8.zip
replaced deprecated human_size by number_to_human_size
git-svn-id: http://redmine.rubyforge.org/svn/trunk@185 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/documents')
-rw-r--r--app/views/documents/show.rhtml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/documents/show.rhtml b/app/views/documents/show.rhtml
index b91ecb469..27ddb8a0c 100644
--- a/app/views/documents/show.rhtml
+++ b/app/views/documents/show.rhtml
@@ -18,7 +18,7 @@
<%= link_to_if_authorized l(:button_delete), {:controller => 'documents', :action => 'destroy_attachment', :id => @document, :attachment_id => attachment}, :confirm => l(:text_are_you_sure), :post => true, :class => 'icon icon-del' %>
</div>
<%= link_to attachment.filename, :action => 'download', :id => @document, :attachment_id => attachment %>
- (<%= human_size attachment.filesize %>)<br />
+ (<%= number_to_human_size attachment.filesize %>)<br />
<em><%= attachment.author.display_name %>, <%= format_date(attachment.created_on) %></em><br />
<%= lwr(:label_download, attachment.downloads) %>
</li>
@@ -31,7 +31,7 @@
<% form_tag ({ :controller => 'documents', :action => 'add_attachment', :id => @document }, :multipart => true, :class => "tabular") do %>
<p id="attachments_p"><label for="attachment_file"><%=l(:label_attachment)%>
<%= image_to_function "add.png", "addFileField();return false" %></label>
- <%= file_field_tag 'attachments[]', :size => 30 %> <em>(<%= l(:label_max_size) %>: <%= human_size(Setting.attachment_max_size.to_i.kilobytes) %>)</em></p>
+ <%= file_field_tag 'attachments[]', :size => 30 %> <em>(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)</em></p>
<%= submit_tag l(:button_add) %>
<% end %>
<% end %>