Skip to content

Commit

Permalink
Merge pull request #3053 from consul/budget-investment-social-share
Browse files Browse the repository at this point in the history
[Backport] Budget investments social share
  • Loading branch information
decabeza committed Nov 26, 2018
2 parents 46b66e9 + 2c06008 commit fce5fdf
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
10 changes: 7 additions & 3 deletions app/views/budgets/investments/_investment_show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,17 @@
</div>
<% end %>
<%= render partial: 'shared/social_share', locals: {
<%= render 'shared/social_share',
share_title: t("budgets.investments.show.share"),
title: investment.title,
image_url: image_absolute_url(investment.image, :thumb),
url: budget_investment_url(investment.budget, investment),
description: investment.title
} %>
description: t("budgets.investments.share.message",
title: investment.title,
org: setting['org_name']),
mobile: t("budgets.investments.share.message_mobile",
title: investment.title,
handle: setting['twitter_handle']) %>
<% if current_user %>
<div class="sidebar-divider"></div>
Expand Down
3 changes: 3 additions & 0 deletions config/locales/en/budgets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ en:
random: random
confidence_score: highest rated
price: by price
share:
message: "I created the investment project %{title} in %{org}. Create an investment project you too!"
message_mobile: "I created the investment project %{title} in %{handle}. Create an investment project you too!"
show:
author_deleted: User deleted
price_explanation: Price explanation
Expand Down
3 changes: 3 additions & 0 deletions config/locales/es/budgets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ es:
random: Aleatorios
confidence_score: Mejor valorados
price: Por coste
share:
message: "He presentado el proyecto %{title} en %{org}. ¡Presenta un proyecto tú también!"
message_mobile: "He presentado el proyecto %{title} en %{handle}. ¡Presenta un proyecto tú también!"
show:
author_deleted: Usuario eliminado
price_explanation: Informe de coste
Expand Down

0 comments on commit fce5fdf

Please sign in to comment.