Sha256: adfcd009f8b55f38e872c76cb663682a5bc3cf65c8aad011aef93aa4f3cdb68d

Contents?: true

Size: 401 Bytes

Versions: 24

Compression:

Stored size: 401 Bytes

Contents

td.thumb
  div.thumb
    = image_tag attachment.thumb_url, alt: attachment.file_name

td.file_info
  = link_to attachment.file_name, attachment.file.url
  span.mime_type = attachment.file_mime_type
  span.size = attachment.file_size

- if attachment.errors.to_a.any?
  td.errors = render 'simple_form_attachments/errors', errors: attachment.errors.to_a

- else
  td.fields
    = fields.input :caption

Version data entries

24 entries across 21 versions & 1 rubygems

Version Path
simple_form_attachments-0.0.3 test/dummy/app/views/simple_form_attachments/attachment_images/_attachment_image.html.slim
simple_form_attachments-0.0.3 test/dummy/app/views/attachment_images/_attachment_image.html.slim
simple_form_attachments-0.0.1 test/dummy/app/views/simple_form_attachments/attachment_images/_attachment_image.html.slim
simple_form_attachments-0.0.1 test/dummy/app/views/attachment_images/_attachment_image.html.slim