Mostly fixed the packages list, grid and detail views
This commit is contained in:
parent
43a8ea9dd3
commit
1c59a5ac74
7 changed files with 206 additions and 1 deletions
15
app/views/packages/_grid_thumbnail.slim
Normal file
15
app/views/packages/_grid_thumbnail.slim
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue