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
|
|
@ -19,8 +19,8 @@
|
|||
- @pending_screenshots.each do |screenshot|
|
||||
.container.listview
|
||||
/ = screenshot.status
|
||||
a.black.fancybox href=screenshot.image.url(:large, timestamp: false) rel='fancybox-thumb' title=screenshot.caption
|
||||
= image_tag(screenshot.image.url(:large, timestamp: false), alt: screenshot.caption)
|
||||
a.black.fancybox href=screenshot.image.variant("800x600") rel='fancybox-thumb' title=screenshot.caption
|
||||
= image_tag(screenshot.image.variant("800x600"), alt: screenshot.caption)
|
||||
.imgcaption =screenshot.caption
|
||||
em.imgcaption =screenshot.adminstatus
|
||||
|
||||
|
|
@ -43,8 +43,8 @@
|
|||
- @package.screenshots.each do |screenshot|
|
||||
- if screenshot.approved==true and screenshot.markedfordelete==false
|
||||
.container.listview
|
||||
a.black.fancybox href=screenshot.image.url(:large, timestamp: false) rel='fancybox-thumb' title=screenshot.caption
|
||||
= image_tag(screenshot.image.url(:large, timestamp: false), alt: screenshot.caption)
|
||||
a.black.fancybox href=screenshot.image.variant("800x600", timestamp: false) rel='fancybox-thumb' title=screenshot.caption
|
||||
= image_tag(screenshot.image.variant("800x600"), alt: screenshot.caption)
|
||||
.imgcaption =screenshot.caption
|
||||
|
||||
- else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue