Fixed old Paperclip code

This commit is contained in:
Christoph Haas 2020-10-25 02:20:17 +02:00
parent 1734655bc6
commit 109354dbf6

View file

@ -19,7 +19,7 @@
// TODO: smarter search for the best screenshot instead of taking the first one
- screenshot = pkg.screenshots.first
a.black title=screenshot.caption href=package_path(name: pkg.name)
= image_tag(screenshot.image.variant("800x600", timestamp: false), alt: screenshot.caption)
= image_tag(screenshot.medium_image, alt: screenshot.caption)
/- if pkg.screenshots.length > 1
a.black href=package_path(name: pkg.name)
'and #{pluralize(pkg.screenshots.length-1, 'screenshot')} more…