From 6acee9d1581e73ead764c1d087e2ddcfff5a2a38 Mon Sep 17 00:00:00 2001 From: Raphael Date: Wed, 23 Jun 2010 12:16:52 -0700 Subject: [PATCH] changed blog.owner to blog.person.real_name --- app/views/blogs/_blog.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/blogs/_blog.html.haml b/app/views/blogs/_blog.html.haml index c4b4b9f9e..2c8ba7b67 100644 --- a/app/views/blogs/_blog.html.haml +++ b/app/views/blogs/_blog.html.haml @@ -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 \ No newline at end of file + = link_to 'Destroy', blog_path(post), :confirm => 'Are you sure?', :method => :delete