touched up reshare view
This commit is contained in:
parent
a325970e5d
commit
6e25a6a0f1
5 changed files with 31 additions and 14 deletions
|
|
@ -7,7 +7,11 @@ module ResharesHelper
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def reshare_link post
|
def reshare_link(post)
|
||||||
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, :text => post.text)
|
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)
|
||||||
|
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)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -8,10 +8,14 @@
|
||||||
= person_image_link(post.author, :size => :thumb_small)
|
= person_image_link(post.author, :size => :thumb_small)
|
||||||
|
|
||||||
.content
|
.content
|
||||||
.right
|
|
||||||
= link_to t(".show_original"), post_path(post)
|
|
||||||
%span.from
|
%span.from
|
||||||
= person_link(post.author, :class => "hovercardable")
|
= person_link(post.author, :class => "hovercardable")
|
||||||
|
%span.details
|
||||||
|
–
|
||||||
|
%span.timeago
|
||||||
|
= link_to(how_long_ago(post), post_path(post))
|
||||||
|
–
|
||||||
|
= t("reshares.reshare.reshare", :count => post.reshares.size)
|
||||||
|
|
||||||
- if post.activity_streams?
|
- 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"
|
= 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"
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@
|
||||||
%span.like_action
|
%span.like_action
|
||||||
= like_action(post, current_user)
|
= like_action(post, current_user)
|
||||||
|
|
||||||
- if (post.author_id != current_user.person.id) && (post.public?) && !reshare?(post)
|
- if (post.author_id != current_user.person.id) && (post.public?)
|
||||||
·
|
·
|
||||||
%span.reshare_action
|
%span.reshare_action
|
||||||
= reshare_link(post)
|
= reshare_link(post)
|
||||||
|
|
|
||||||
|
|
@ -591,14 +591,15 @@ en:
|
||||||
other: "%{count} new requests!"
|
other: "%{count} new requests!"
|
||||||
reshares:
|
reshares:
|
||||||
reshare:
|
reshare:
|
||||||
|
reshare_original: "Reshare orignial"
|
||||||
reshare:
|
reshare:
|
||||||
zero: "Reshare"
|
zero: "Reshare"
|
||||||
one: "1 reshare"
|
one: "1 Reshare"
|
||||||
few: "%{count} reshares"
|
few: "%{count} Reshares"
|
||||||
many: "%{count} reshares"
|
many: "%{count} Reshares"
|
||||||
other: "%{count} reshares"
|
other: "%{count} Reshares"
|
||||||
show_original: "Show original"
|
show_original: "Show original"
|
||||||
reshare_confirmation: "Reshare %{author} - %{text}?"
|
reshare_confirmation: "Reshare %{author}'s post?"
|
||||||
deleted: "Original post deleted by author."
|
deleted: "Original post deleted by author."
|
||||||
create:
|
create:
|
||||||
failure: "There was an error resharing this post."
|
failure: "There was an error resharing this post."
|
||||||
|
|
|
||||||
|
|
@ -492,8 +492,12 @@ ul.as-selections
|
||||||
:margin
|
:margin
|
||||||
:bottom 5px
|
:bottom 5px
|
||||||
|
|
||||||
.details
|
.from
|
||||||
:color #aaa
|
.details,
|
||||||
|
.details *
|
||||||
|
:color #aaa
|
||||||
|
:font
|
||||||
|
:weight normal
|
||||||
|
|
||||||
.post_scope
|
.post_scope
|
||||||
:cursor default
|
:cursor default
|
||||||
|
|
@ -612,8 +616,12 @@ ul.show_comments,
|
||||||
:display inline
|
:display inline
|
||||||
|
|
||||||
.stream_element .reshare
|
.stream_element .reshare
|
||||||
:padding 10px
|
:padding
|
||||||
:border 1px solid #eee
|
:left 10px
|
||||||
|
:border-left 2px solid #ddd
|
||||||
|
:margin
|
||||||
|
:top 5px
|
||||||
|
:bottom 10px
|
||||||
|
|
||||||
ul.show_comments
|
ul.show_comments
|
||||||
:padding
|
:padding
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue