14 lines
580 B
Text
14 lines
580 B
Text
// TODO: Handle packages with multiple screenshots
|
|
a.black href=package_path(name: pkg.name)
|
|
div.grid-thumbnail
|
|
- if pkg.screenshots_approved.any?
|
|
// TODO: smarter selection of the most useful screenshot instead of taking the first one
|
|
- screenshot = pkg.screenshots.first
|
|
= image_tag(screenshot.image.variant(resize_to_limit: "160x120"), alt: screenshot.caption, class: 'thumbnail')
|
|
- else
|
|
img.screenshot.thumbnail src="/images/dummy/no-screenshots-upload-one.svg"
|
|
div
|
|
.pkgname
|
|
= pkg.name
|
|
.pkgdescription
|
|
= pkg.description
|