From 0d864935cd1cf4dd8843a59ea9f06afb0fd88a6b Mon Sep 17 00:00:00 2001 From: Raphael Sofaer Date: Fri, 5 Aug 2011 10:52:33 -0700 Subject: [PATCH] Make reshares helper a little more readable --- app/helpers/reshares_helper.rb | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/app/helpers/reshares_helper.rb b/app/helpers/reshares_helper.rb index d889ce1d6..c9fb283e6 100644 --- a/app/helpers/reshares_helper.rb +++ b/app/helpers/reshares_helper.rb @@ -9,9 +9,18 @@ module ResharesHelper def reshare_link(post) if reshare?(post) - link_to t("reshares.reshare.reshare_original"), reshares_path(:root_guid => post.root.guid), :method => :post, :remote => true, :confirm => t('reshares.reshare.reshare_confirmation', :author => post.root.author.name) + link_to t("reshares.reshare.reshare_original"), + reshares_path(:root_guid => post.root.guid), + :method => :post, + :remote => true, + :confirm => t('reshares.reshare.reshare_confirmation', :author => post.root.author.name) else - link_to t("reshares.reshare.reshare", :count => post.reshares.size), reshares_path(:root_guid => post.guid), :method => :post, :remote => true, :confirm => t('reshares.reshare.reshare_confirmation', :author => post.author.name) + link_to t("reshares.reshare.reshare", + :count => post.reshares.size), + reshares_path(:root_guid => post.guid), + :method => :post, + :remote => true, + :confirm => t('reshares.reshare.reshare_confirmation', :author => post.author.name) end end end