20 lines
580 B
Text
20 lines
580 B
Text
%li.message{:id => post.id, :class => ("mine" if mine?(post))}
|
|
|
|
= person_image_tag(post.person)
|
|
|
|
%span.from
|
|
= link_to_person post.person
|
|
%b wrote a new blog post
|
|
%br
|
|
%b= post.title
|
|
%br
|
|
= raw post.body
|
|
%div.time
|
|
= link_to(how_long_ago(post), object_path(post))
|
|
\--
|
|
= link_to "show comments (#{post.comments.count})", '#', :class => "show_post_comments"
|
|
= render "comments/comments", :post => post
|
|
|
|
- if mine?(post)
|
|
.destroy_link
|
|
= link_to 'Delete', blog_path(post), :confirm => 'Are you sure?', :method => :delete, :remote=> true
|