Photo partial now has a description and a link to view all photos by that person.

This commit is contained in:
danielvincent 2010-11-05 17:26:40 -07:00
parent e4f8f558a0
commit 9a055b6cba
2 changed files with 24 additions and 4 deletions

View file

@ -22,11 +22,12 @@
.right
= link_to t('delete'), photo_path(post), :confirm => t('are_you_sure'), :method => :delete, :remote => true, :class => "delete"
=t('.posted_a_photo')
= link_to (image_tag post.url(:thumb_large)), object_path(post), :class => 'stream_photo'
%p.photo_description
= post.caption
%br
%br
= link_to (image_tag post.url(:thumb_large)), object_path(post)
= link_to "view all of #{post.person.real_name}'s photos", person_photos_path(post.person), :class => "small_text"
.info
%span.time= link_to(how_long_ago(post), photo_path(post))

View file

@ -315,6 +315,25 @@ li.message
:weight normal
:size 14px
.stream_photo
:float left
:margin
:top 6px
.photo_description
:margin
:top 6px
:padding
:left 220px
:min-height 185px
:color #888
:font
:style italic
.small_text
:font
:size 10px
div.info
:color #999
:font-size smaller