Using new access methods for ActiveStorage instead of Paperclip

This commit is contained in:
Christoph Haas 2020-04-20 20:12:10 +02:00
parent 01024c771b
commit ce881343e2
8 changed files with 16 additions and 16 deletions

View file

@ -12,8 +12,8 @@ h1 =@package.name
- screenshots_visible_to_user(@package).each do |screenshot|
.listview
.text-center
a.black.fancybox href=screenshot.image.url(:large, timestamp: false) rel='fancybox-thumb' title=screenshot.caption
= image_tag(screenshot.image.url(:large, timestamp: false), alt: screenshot.caption)
a.black.fancybox href=screenshot.image.variant(resize: "800x600") rel='fancybox-thumb' title=screenshot.caption
= image_tag(screenshot.image.variant(resize: "800x600"), alt: screenshot.caption)
- if screenshot.description
.imgcaption =screenshot.description
- if screenshot.version.present?