Link to details page even if no screenshots exists yet.

This commit is contained in:
Christoph Haas 2014-12-29 15:29:53 +01:00
parent 0143c63c3f
commit 1e4a830cfa

View file

@ -4,9 +4,7 @@ a.black href=package_path(name: pkg.name)
- if pkg.screenshots.any?
img src=pkg.screenshots[0].url('small')
- else
// TODO: make it a link to /upload
a href=upload_package_by_name_path(name: pkg.name)
img.screenshot src="/images/dummy/no-screenshots-upload-one.svg"
img.screenshot src="/images/dummy/no-screenshots-upload-one.svg"
div
// TODO: use description instead of package name (as soon as it is available)
.pkgname