Moving humanized_content_type from DocumentablesHelper to Document model. Removing humanized_file_size in favor of direct use of number_to_human_size form ActionViewHelper. Added additional documentens to all concerned views
This commit is contained in:
@@ -8,8 +8,8 @@
|
||||
</p>
|
||||
<% documents.each do |document| %>
|
||||
<p><span class="icon-document"></span>
|
||||
<%= link_to "#{document.title} <small>(#{documentable_humanized_content_type(document)} | \
|
||||
#{documentable_humanized_file_size(document)}</small>)".html_safe,
|
||||
<%= link_to "#{document.title} <small>(#{document.humanized_content_type} | \
|
||||
#{number_to_human_size(document.attachment_file_size)}</small>)".html_safe,
|
||||
document.attachment.url,
|
||||
target: "_blank",
|
||||
title: t("shared.target_blank_html") %>
|
||||
|
||||
Reference in New Issue
Block a user