Anonymous uploads replaced by creation of ad-hoc users
This commit is contained in:
parent
d9d0babb2c
commit
0bfacbee30
7 changed files with 78 additions and 48 deletions
|
|
@ -1,7 +1,7 @@
|
|||
// TODO: Handle packages with multiple screenshots
|
||||
a.black href=package_path(name: pkg.name)
|
||||
div.grid-thumbnail
|
||||
- if pkg.screenshots.any?
|
||||
- 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.url(:thumb, timestamp: false), alt: screenshot.caption, class: 'thumbnail')
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
.pkgname
|
||||
=pkg.name
|
||||
' >
|
||||
- if pkg.screenshots.any?
|
||||
- if pkg.screenshots_approved.any?
|
||||
// TODO: smarter search for the best screenshot instead of taking the first one
|
||||
- screenshot = pkg.screenshots.first
|
||||
a.black title=screenshot.caption href=package_path(name: pkg.name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue