Sha256: d67f16fe416a4d8348d466580f9de1927a5a3357214fa6ef8341efb19d3e562c

Contents?: true

Size: 403 Bytes

Versions: 6

Compression:

Stored size: 403 Bytes

Contents

- if attachment.present?
  - file_blob_url = main_app.route_for(:rails_service_blob, attachment.blob.signed_id, attachment.blob.filename)
  - if attachment.blob.image?
    = link_to image_tag(main_app.route_for(:rails_representation, attachment.variant(resize: "200>")), class: 'uploaded_image'), file_blob_url
  - else
    = link_to attachment.blob.filename.to_s, file_blob_url, class: 'uploaded_file'

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bhf-1.0.0.beta16 app/views/bhf/form/column/_attachment_presenter.html.haml
bhf-1.0.0.beta15 app/views/bhf/form/column/_attachment_presenter.html.haml
bhf-1.0.0.beta14 app/views/bhf/form/column/_attachment_presenter.html.haml
bhf-1.0.0.beta13 app/views/bhf/form/column/_attachment_presenter.html.haml
bhf-1.0.0.beta12 app/views/bhf/form/column/_attachment_presenter.html.haml
bhf-1.0.0.beta11 app/views/bhf/form/column/_attachment_presenter.html.haml