changed blog.owner to blog.person.real_name
This commit is contained in:
parent
a673e48317
commit
6acee9d158
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue