Always show "Reshare original" for link. Show number of reshares in the post_initial_info div.
This is to improve UX by making it much more obvious how to reshare a post that has already been reshared. Prior to this change, the link to reshare would show only the reshare count, e.g. "7 reshares". Most users would have no idea that they need to click "7 reshares" to reshare the post themselves.
This commit is contained in:
parent
455e5375d8
commit
e9c87f7f44
2 changed files with 5 additions and 2 deletions
|
|
@ -25,8 +25,7 @@ module ResharesHelper
|
|||
:remote => true,
|
||||
:confirm => t('reshares.reshare.reshare_confirmation', :author => post.root.author.name)
|
||||
else
|
||||
link_to t("reshares.reshare.reshare",
|
||||
:count => post.reshares.size),
|
||||
link_to t("reshares.reshare.reshare_original"),
|
||||
reshares_path(:root_guid => post.guid),
|
||||
:method => :post,
|
||||
:remote => true,
|
||||
|
|
|
|||
|
|
@ -32,6 +32,10 @@
|
|||
–
|
||||
%span.timeago
|
||||
= link_to(how_long_ago(post), post_path(post))
|
||||
- if post.reshares.any?
|
||||
–
|
||||
%span.num_reshares
|
||||
= t("reshares.reshare.reshare", :count => post.reshares.size)
|
||||
|
||||
- if post.activity_streams?
|
||||
= link_to image_tag(post.image_url, 'data-small-photo' => post.image_url, 'data-full-photo' => post.image_url, :class => 'stream-photo'), post.object_url, :class => "stream-photo-link"
|
||||
|
|
|
|||
Loading…
Reference in a new issue