15 lines
460 B
Text
15 lines
460 B
Text
.album{:id => post.id, :class => ("mine" if current_user.owns?(post))}
|
|
|
|
%div.name
|
|
= link_to post.name, object_path(post)
|
|
|
|
%div.time
|
|
by
|
|
= link_to ((current_user.person == post.person)? 'you' : post.person.real_name), person_path(post.person)
|
|
%br
|
|
= link_to(how_long_ago(post), object_path(post))
|
|
|
|
%div.image_cycle
|
|
- for photo in post.photos[0..3]
|
|
= link_to (image_tag photo.url(:thumb_large)), album_path(post)
|
|
|