Using rails_representation_url to link to URL of image variant
This commit is contained in:
parent
6cda78d1ee
commit
ee4c96c428
4 changed files with 5 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue