Mostly fixed the packages list, grid and detail views

This commit is contained in:
Christoph Haas 2014-11-30 16:07:28 +01:00
parent 43a8ea9dd3
commit 1c59a5ac74
7 changed files with 206 additions and 1 deletions

View file

@ -0,0 +1,15 @@
// TODO: Handle packages with multiple screenshots
a.black href=package_path(name: pkg.name)
div.grid-thumbnail
- if pkg.screenshots.any?
img src=pkg.screenshots[0].url('small')
- else
// TODO: make it a link to /upload
a href=upload_package_path(name: pkg.name)
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
=pkg.name
.pkgdescription
= pkg.description