changed blog.owner to blog.person.real_name

This commit is contained in:
Raphael 2010-06-23 12:16:52 -07:00
parent a673e48317
commit 6acee9d158

View file

@ -1,6 +1,6 @@
%li.message{:class => ("mine" if mine?(post))}
%span.from
= link_to post.owner, "#"
= link_to post.person.real_name, "#"
%b wrote a new blog post
%br
%b= post.title
@ -8,4 +8,4 @@
= raw post.body
%div.time= link_to "#{time_ago_in_words(post.updated_at)} ago", blog_path(post)
- if mine?(post)
= link_to 'Destroy', blog_path(post), :confirm => 'Are you sure?', :method => :delete
= link_to 'Destroy', blog_path(post), :confirm => 'Are you sure?', :method => :delete