mirror of
https://github.com/diaspora/diaspora.git
synced 2026-04-29 03:01:03 -04:00
image uploader does two thumbnails
This commit is contained in:
@@ -11,7 +11,11 @@ class ImageUploader < CarrierWave::Uploader::Base
|
||||
%w(jpg jpeg gif png)
|
||||
end
|
||||
|
||||
version :small_thumb do
|
||||
version :thumb_small do
|
||||
process :resize_to_fill => [30,30]
|
||||
end
|
||||
|
||||
version :thumb_medium do
|
||||
process :resize_to_fill => [100,100]
|
||||
end
|
||||
end
|
||||
|
||||
@@ -57,5 +57,4 @@
|
||||
= my_latest_message
|
||||
= yield
|
||||
|
||||
.span-20.last
|
||||
= render "posts/debug"
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
= link_to_person post.person
|
||||
%b posted a new photo
|
||||
%br
|
||||
= link_to (image_tag post.image.url(:small_thumb)), object_path(post)
|
||||
= link_to (image_tag post.image.url(:thumb_medium)), object_path(post)
|
||||
|
||||
%div.time
|
||||
= link_to(how_long_ago(post), status_message_path(post))
|
||||
|
||||
Reference in New Issue
Block a user