Using rails_representation_url to link to URL of image variant

This commit is contained in:
Christoph Haas 2020-05-03 22:33:31 +02:00
parent 6cda78d1ee
commit ee4c96c428
4 changed files with 5 additions and 6 deletions

View file

@ -12,7 +12,7 @@ h1 =@package.name
- screenshots_visible_to_user(@package).each do |screenshot|
.listview
.text-center
a.black.fancybox href=screenshot.image.variant(resize: "800x600") rel='fancybox-thumb' title=screenshot.caption
a.black.fancybox href=rails_representation_url(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