Module: Worthwhile::ThumbnailHelper
- Included in:
- MainAppHelpers
- Defined in:
- app/helpers/worthwhile/thumbnail_helper.rb
Instance Method Summary collapse
Instance Method Details
#thumbnail_tag(document, image_options) ⇒ Object
3 4 5 6 7 8 9 |
# File 'app/helpers/worthwhile/thumbnail_helper.rb', line 3 def thumbnail_tag(document, ) if document.representative.present? image_tag download_path(document.representative, datastream_id: 'thumbnail'), alt: 'Thumbnail', class: "canonical-image" else content_tag :span, '', class: 'canonical-image' end end |