Showing screenshots in package details as a list instead of a grid

This commit is contained in:
Christoph Haas 2015-04-19 22:28:57 +02:00
parent 841e3071f8
commit 57b5df0a1c

View file

@ -12,9 +12,9 @@
.small-7.medium-7.columns
p.subtitle = @package.description
ul.small-block-grid-1.medium-block-grid-2.large-block-grid-2
- @package.screenshots.each do |screenshot|
li
- @package.screenshots.each do |screenshot|
.row.listview
.small-12.columns
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)
.imgcaption =screenshot.caption
@ -24,6 +24,7 @@
onclick="return confirm('Really delete the screenshot?');"
] Delete screenshot
// TODO: Enable comments in a later version
// = partial '/package/comments'