make photos larger in the stream

This commit is contained in:
danielgrippi 2011-03-10 15:17:41 -08:00
parent 8f929d2b85
commit 1f3261b2ef
2 changed files with 11 additions and 5 deletions

View file

@ -4,8 +4,13 @@
= markdownify(post.message, :youtube_maps => post[:youtube_titles])
- if photos.count > 0
- if photos.size > 0
.photo_attachments
- for photo in photos
= link_to (image_tag photo.url(:thumb_medium)), photo_path(photo)
= link_to (image_tag photos.first.url(:scaled_full)), photo_path(photos.first)
- if photos.size > 1
- if photos.size >= 8
- for photo in photos[1..8]
= link_to (image_tag photo.url(:thumb_small)), photo_path(photo)
- else
- for photo in photos[1..photos.size]
= link_to (image_tag photo.url(:thumb_small)), photo_path(photo)

View file

@ -372,7 +372,8 @@ header
img
:margin
:right 0.5em
:right 0
:max-width 100%
.stream_photo
:float left