Skip to content
Extraits de code Groupes Projets
Valider 241999f7 rédigé par Raphael Sofaer's avatar Raphael Sofaer
Parcourir les fichiers

MS RS translated reshares

parent 00885be7
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -6,4 +6,8 @@ module ResharesHelper
escape_javascript(t('reshares.create.failure'))
end
end
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)
end
end
......@@ -9,7 +9,7 @@
.content
.right
= link_to "Show Original", post_path(post)
= link_to t("show_original"), post_path(post)
%span.from
= person_link(post.author, :class => "hovercardable")
......@@ -19,7 +19,7 @@
= render 'status_messages/status_message', :post => post, :photos => post.photos
- if defined?(current_user) && current_user && (post.author_id != current_user.person.id) && (post.public?) && !reshare?(post)
%span.reshare_action
= link_to "Reshare", reshares_path(:root_guid => post.guid), :method => :post, :remote => true, :confirm => "Reshare: #{post.author.name} - #{post.text}?"
= reshare_link(post)
- else
Original post deleted by author
= t('.deleted')
......@@ -61,7 +61,7 @@
- if (post.author_id != current_user.person.id) && (post.public?) && !reshare?(post)
·
%span.reshare_action
= link_to "#{(post.reshares.size unless post.reshares.size == 0)} Reshare", reshares_path(:root_guid => post.guid), :method => :post, :remote => true, :confirm => "Reshare: #{post.author.name} - #{post.text}?"
= reshare_link(post)
·
= link_to t('comments.new_comment.comment'), '#', :class => 'focus_comment_textarea'
......
......@@ -582,6 +582,16 @@ en:
many: "%{count} new requests!"
other: "%{count} new requests!"
reshares:
reshare:
reshare:
zero: "Reshare"
one: "1 Reshare"
few: "%{count} Reshares"
many: "%{count} Reshares"
other: "%{count} Reshares"
show_original: "Show Original"
reshare_confirmation: "Reshare %{author} - %{text}?"
deleted: "Original post deleted by author."
create:
failure: "There was an error resharing this post."
services:
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter