Sha256: 2a65372c757472391c79c59e8eebe76b08b11998505e1257d220073eb8cc67ba

Contents?: true

Size: 557 Bytes

Versions: 36

Compression:

Stored size: 557 Bytes

Contents

= 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'
    - else
      = link_to f.object.send("#{field.name}_file_name"), file.url, class: 'uploaded_file'
    .file_delete
      = f.check_box "#{field.name}_destroy"
      = f.label "#{field.name}_destroy", t('bhf.helpers.file.delete')
  - unless @quick_edit
    = f.file_field field.name

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
bhf-0.7.1 app/views/bhf/entries/form/column/_paperclip.haml
bhf-0.7.0.rc3 app/views/bhf/entries/form/column/_paperclip.haml
bhf-0.7.0.rc2 app/views/bhf/entries/form/column/_paperclip.haml
bhf-0.7.0.rc1 app/views/bhf/entries/form/column/_paperclip.haml
bhf-0.6.32 app/views/bhf/entries/form/column/_paperclip.haml
bhf-0.6.31 app/views/bhf/entries/form/column/_paperclip.haml
bhf-0.6.30 app/views/bhf/entries/form/column/_paperclip.haml
bhf-0.6.29 app/views/bhf/entries/form/column/_paperclip.haml
bhf-0.6.28 app/views/bhf/entries/form/column/_paperclip.haml
bhf-0.6.27 app/views/bhf/entries/form/column/_paperclip.haml
bhf-0.6.26 app/views/bhf/entries/form/column/_paperclip.haml
bhf-0.6.25 app/views/bhf/entries/form/column/_paperclip.haml
bhf-0.6.24 app/views/bhf/entries/form/column/_paperclip.haml
bhf-0.6.23 app/views/bhf/entries/form/column/_paperclip.haml
bhf-0.6.22 app/views/bhf/entries/form/column/_paperclip.haml
bhf-0.6.21 app/views/bhf/entries/form/column/_paperclip.haml
bhf-0.6.20 app/views/bhf/entries/form/column/_paperclip.haml
bhf-0.6.15 app/views/bhf/entries/form/column/_paperclip.haml
bhf-0.6.14 app/views/bhf/entries/form/column/_paperclip.haml
bhf-0.6.13 app/views/bhf/entries/form/column/_paperclip.haml