MS DG added a safe for viewing photosize
This commit is contained in:
parent
0f407b11ed
commit
a5f359ef1b
2 changed files with 5 additions and 1 deletions
|
|
@ -22,4 +22,8 @@ class ImageUploader < CarrierWave::Uploader::Base
|
|||
version :thumb_large do
|
||||
process :resize_to_fill => [300,200]
|
||||
end
|
||||
|
||||
version :scaled_full do
|
||||
process :resize_to_limit => [700,700]
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
%br
|
||||
|
||||
#show_photo
|
||||
= link_to (image_tag @photo.image.url), photo_path(@album.next_photo(@photo))
|
||||
= link_to (image_tag @photo.image.url(:scaled_full)), photo_path(@album.next_photo(@photo))
|
||||
|
||||
#photo_pagination
|
||||
= link_to "<< previous", photo_path(@album.prev_photo(@photo))
|
||||
|
|
|
|||
Loading…
Reference in a new issue