Fixed views to use Paperclip

This commit is contained in:
Christoph Haas 2015-01-12 00:18:57 +01:00
parent 165f6f166d
commit 351d42ccbb
2 changed files with 6 additions and 4 deletions

View file

@ -31,7 +31,7 @@ div.row
// TODO: load actual newest upload and cache it
// TODO: link to the package page
a.black href=package_path(@newest_uploaded_package.name)
img src=@newest_uploaded_package.screenshots[0].image_url('large')
img src=@newest_uploaded_package.screenshots.first.image.url(:large, timestamp: false)
p
strong
=@newest_uploaded_package.name
@ -43,7 +43,7 @@ div.row
// TODO: load actual most popular package and highest-rated screenshot and cache it
// TODO: link to the package page
a.black href=package_path(@most_popular_package.name)
img src=@most_popular_package.screenshots[0].image_url('large')
img src=@most_popular_package.screenshots.first.image.url(:large, timestamp: false)
p
strong
=@most_popular_package.name