Module: RailsGallery::ViewHelper::Slideshow
- Defined in:
- lib/rails-gallery/view_helper/slideshow.rb
Instance Method Summary collapse
- #slidegal_image(photo, options = {}) ⇒ Object (also: #slideshow_gallery_image)
- #slidegal_imageset(photo, options = {}) ⇒ Object (also: #slideshow_gallery_imageset)
Instance Method Details
#slidegal_image(photo, options = {}) ⇒ Object Also known as: slideshow_gallery_image
4 5 6 7 |
# File 'lib/rails-gallery/view_helper/slideshow.rb', line 4 def photo, = {} .merge! alt: photo.path image_tag photo.thumb, end |
#slidegal_imageset(photo, options = {}) ⇒ Object Also known as: slideshow_gallery_imageset
9 10 11 12 13 |
# File 'lib/rails-gallery/view_helper/slideshow.rb', line 9 def photo, = {} .merge! alt: photo.path .merge! :srcset => photo.srcset if photo.srcset? imageset_tag photo.thumb, end |