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
|
.right
|
||||||
= link_to t('delete'), photo_path(post), :confirm => t('are_you_sure'), :method => :delete, :remote => true, :class => "delete"
|
= 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
|
= link_to "view all of #{post.person.real_name}'s photos", person_photos_path(post.person), :class => "small_text"
|
||||||
%br
|
|
||||||
= link_to (image_tag post.url(:thumb_large)), object_path(post)
|
|
||||||
|
|
||||||
.info
|
.info
|
||||||
%span.time= link_to(how_long_ago(post), photo_path(post))
|
%span.time= link_to(how_long_ago(post), photo_path(post))
|
||||||
|
|
|
||||||
|
|
@ -315,6 +315,25 @@ li.message
|
||||||
:weight normal
|
:weight normal
|
||||||
:size 14px
|
: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
|
div.info
|
||||||
:color #999
|
:color #999
|
||||||
:font-size smaller
|
:font-size smaller
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue