added basic reshare attribution

This commit is contained in:
danielgrippi 2012-02-19 11:56:04 -08:00
parent 5a1f3675b5
commit 3d1ac7ed55

View file

@ -15,6 +15,13 @@
= person_image_link @post.author = person_image_link @post.author
.bd .bd
= person_link(@post.author, :class => 'author-name') = 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 .post-time
%i.icon-time %i.icon-time
= time_ago_in_words(@post.created_at) + ' ago' = time_ago_in_words(@post.created_at) + ' ago'