small_img() helper added
This commit is contained in:
parent
c4f5741b0c
commit
f1cff3883d
4 changed files with 45 additions and 29 deletions
|
|
@ -30,7 +30,7 @@
|
|||
h2 Newest upload
|
||||
.thumb-height
|
||||
a href=package_path(@newest_upload.package.name)
|
||||
= image_tag(@newest_upload.image.variant(resize_to_limit: [160,120]), alt: @newest_upload.caption)
|
||||
= small_img(@newest_upload)
|
||||
p
|
||||
strong
|
||||
=@newest_upload.package.name
|
||||
|
|
@ -41,7 +41,7 @@
|
|||
.thumb-height
|
||||
- if @most_popular_package
|
||||
a href=package_path(@most_popular_package.name)
|
||||
= image_tag(@most_popular_package.screenshots.first.image.variant(resize_to_limit: [160,120]))
|
||||
= small_img(@most_popular_package.screenshots.first)
|
||||
- else
|
||||
'No uploaded screenshots yet.
|
||||
p
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue