Photo partial now has a description and a link to view all photos by that person.
This commit is contained in:
parent
e4f8f558a0
commit
9a055b6cba
2 changed files with 24 additions and 4 deletions
|
|
@ -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'
|
||||
|
||||
%br
|
||||
%br
|
||||
= link_to (image_tag post.url(:thumb_large)), object_path(post)
|
||||
%p.photo_description
|
||||
= post.caption
|
||||
|
||||
= 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))
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue