app/views/bhf/entries/form/column/_paperclip.haml in bhf-0.7.12 vs app/views/bhf/entries/form/column/_paperclip.haml in bhf-0.7.13

- old
+ new

@@ -2,10 +2,10 @@ - unless @quick_edit = node f, field do - file = f.object.send(field.name) - if file.file? - if ['image/jpeg', 'image/pjpeg', 'image/jpg', 'image/png', 'image/tif', 'image/gif'].include?(f.object.send("#{field.name}_content_type")) - = image_tag file.url, class: 'uploaded_image' + = image_tag find_smallest_size_url_for_file(file), class: 'uploaded_image' - else = link_to f.object.send("#{field.name}_file_name"), file.url, class: 'uploaded_file' - if f.object.respond_to?(:"#{field.name}_destroy") .file_delete