From 3d1ac7ed55de68aca9c6e58999e968a59ddca3fe Mon Sep 17 00:00:00 2001 From: danielgrippi Date: Sun, 19 Feb 2012 11:56:04 -0800 Subject: [PATCH] added basic reshare attribution --- app/views/posts/show.html.haml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/views/posts/show.html.haml b/app/views/posts/show.html.haml index 720027b9c..2e54666f5 100644 --- a/app/views/posts/show.html.haml +++ b/app/views/posts/show.html.haml @@ -15,6 +15,13 @@ = person_image_link @post.author .bd = person_link(@post.author, :class => 'author-name') + + - if @post.is_a?(Reshare) && @post.root.present? + reshared via + = person_link(@post.root.author, :class => "author-name") + + + .post-time %i.icon-time = time_ago_in_words(@post.created_at) + ' ago'