Using new access methods for ActiveStorage instead of Paperclip
This commit is contained in:
parent
01024c771b
commit
ce881343e2
8 changed files with 16 additions and 16 deletions
|
|
@ -32,8 +32,8 @@ h1 = "Upload screenshots for #{@package.name}"
|
|||
.small-up-1.medium-up-3.large-up-4.grid-thumbnails
|
||||
- @package.screenshots.all.each do |ss|
|
||||
.column
|
||||
a.black.fancybox href=ss.image.url(:large, timestamp: false) rel='fancybox-thumb' title=ss.caption
|
||||
= image_tag(ss.image.url(:thumb, timestamp: false), alt: ss.caption, class: 'thumbnail')
|
||||
a.black.fancybox href=ss.image.variant(resize: "800x600") rel='fancybox-thumb' title=ss.caption
|
||||
= image_tag(ss.image.variant(resize: "160x120"), alt: ss.caption, class: 'thumbnail')
|
||||
|
||||
// = render partial: 'packages/grid_thumbnail', locals: { pkg: pkg }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue