mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Use PictureUploader on Sponsor
This commit is contained in:
parent
0ad3ff01c3
commit
f1f5fc1cd4
6 changed files with 12 additions and 25 deletions
|
|
@ -50,17 +50,17 @@ class PictureUploader < CarrierWave::Uploader::Base
|
|||
|
||||
version :first, if: :sponsor?
|
||||
version :first do
|
||||
process resize_to_fill: [320, 180]
|
||||
process resize_and_pad: [320, 180, 'white']
|
||||
end
|
||||
|
||||
version :second, if: :sponsor?
|
||||
version :second, from_version: :first do
|
||||
process resize_to_fill: [320, 150]
|
||||
process resize_and_pad: [320, 150, 'white']
|
||||
end
|
||||
|
||||
version :others, if: :sponsor?
|
||||
version :others, from_version: :second do
|
||||
process resize_to_fill: [320, 120]
|
||||
process resize_and_pad: [320, 120, 'white']
|
||||
end
|
||||
|
||||
# Add a white list of extensions which are allowed to be uploaded.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue