diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-01-26 20:02:49 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-01-26 20:02:49 +0000 |
commit | 0d55613359d98958e6b21174a30235a8431595d8 (patch) | |
tree | 37f4fd094c535d22878ce51039bdafe86d7908e9 /app/views/issues | |
parent | 845460b16525dc350a12a9f1bde2109caa1a53b6 (diff) | |
download | redmine-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/issues')
-rw-r--r-- | app/views/issues/_pdf.rfpdf | 2 | ||||
-rw-r--r-- | app/views/issues/show.rhtml | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/views/issues/_pdf.rfpdf b/app/views/issues/_pdf.rfpdf index 1f6a12283..8f09ab72b 100644 --- a/app/views/issues/_pdf.rfpdf +++ b/app/views/issues/_pdf.rfpdf @@ -92,7 +92,7 @@ for attachment in issue.attachments
pdf.SetFont('Arial','',8)
pdf.Cell(80,5, attachment.filename)
- pdf.Cell(20,5, human_size(attachment.filesize),0,0,"R")
+ pdf.Cell(20,5, number_to_human_size(attachment.filesize),0,0,"R")
pdf.Cell(20,5, format_date(attachment.created_on),0,0,"R")
pdf.Cell(70,5, attachment.author.name,0,0,"R")
pdf.Ln
diff --git a/app/views/issues/show.rhtml b/app/views/issues/show.rhtml index 865da9650..07ece8660 100644 --- a/app/views/issues/show.rhtml +++ b/app/views/issues/show.rhtml @@ -81,7 +81,7 @@ end %> <table width="100%">
<% for attachment in @issue.attachments %>
<tr>
-<td><%= link_to attachment.filename, { :action => 'download', :id => @issue, :attachment_id => attachment }, :class => 'icon icon-attachment' %> (<%= human_size(attachment.filesize) %>)</td>
+<td><%= link_to attachment.filename, { :action => 'download', :id => @issue, :attachment_id => attachment }, :class => 'icon icon-attachment' %> (<%= number_to_human_size(attachment.filesize) %>)</td>
<td><%= format_date(attachment.created_on) %></td>
<td><%= attachment.author.display_name %></td>
<td><div class="contextual"><%= link_to_if_authorized l(:button_delete), {:controller => 'issues', :action => 'destroy_attachment', :id => @issue, :attachment_id => attachment }, :confirm => l(:text_are_you_sure), :post => true, :class => 'icon icon-del' %></div></td>
@@ -93,7 +93,7 @@ end %> <% form_tag ({ :controller => 'issues', :action => 'add_attachment', :id => @issue }, :multipart => true, :class => "tabular") do %>
<p id="attachments_p"><label><%=l(:label_attachment_new)%>
<%= 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 %>
|