Uploading screenshots really works finally. :)

This commit is contained in:
Christoph Haas 2015-02-10 16:54:06 +01:00
parent 18edade734
commit 60a183576c
2 changed files with 9 additions and 10 deletions

View file

@ -21,15 +21,15 @@
' Click or drag a PNG screenshot file here
.small-6.columns
' Form
- for screenshot in @package.screenshots
.row
img src=screenshot.url('large')
- puts @package.screenshots
- @package.screenshots.each do |screenshot|
.listview
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)
.row
h1 =screenshot.package.name
img src=screenshot.image.url(:large, timestamp: false, alt: screenshot.caption)
// - @package.screenshots.each do |screenshot|
// .listview
// 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
// - if screenshot.uploader