Switch to iterator

This commit is contained in:
Christoph Haas 2015-01-04 18:58:35 +01:00
parent 2d8e1a43b0
commit 5e8dd243a3

View file

@ -13,7 +13,7 @@
p.subtitle = @package.description
ul.small-block-grid-1.medium-block-grid-2.large-block-grid-2
- for screenshot in @package.screenshots
- @package.screenshots.each do |screenshot|
li
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)