From 16c365ca1df8795712cf40e3420f801a321f517b Mon Sep 17 00:00:00 2001 From: Fernando Blat Date: Thu, 16 Feb 2017 16:05:08 +0100 Subject: [PATCH] Improve social networks share text --- .../legislation/annotations/_slim_version_chooser.html.erb | 2 +- app/views/legislation/annotations/show.html.erb | 6 +++--- config/locales/legislation.en.yml | 1 + config/locales/legislation.es.yml | 1 + 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/views/legislation/annotations/_slim_version_chooser.html.erb b/app/views/legislation/annotations/_slim_version_chooser.html.erb index cd34736f7..2f2203374 100644 --- a/app/views/legislation/annotations/_slim_version_chooser.html.erb +++ b/app/views/legislation/annotations/_slim_version_chooser.html.erb @@ -17,7 +17,7 @@

Compartir

- <%= render '/legislation/shared/share_buttons', title: @draft_version.title %> + <%= render '/legislation/shared/share_buttons', title: t('legislation.shared.share_comment', version_name: @draft_version.title.downcase, process_name: @process.title) %>
diff --git a/app/views/legislation/annotations/show.html.erb b/app/views/legislation/annotations/show.html.erb index c2cf53a60..46c728a16 100644 --- a/app/views/legislation/annotations/show.html.erb +++ b/app/views/legislation/annotations/show.html.erb @@ -29,14 +29,14 @@ - + + <%= render partial: '/comments/comment_tree', locals: { comment_tree: @comment_tree, comment_flags: @comment_flags } %> diff --git a/config/locales/legislation.en.yml b/config/locales/legislation.en.yml index 4517e1f31..589c9e1fc 100644 --- a/config/locales/legislation.en.yml +++ b/config/locales/legislation.en.yml @@ -112,3 +112,4 @@ en: share_twitter: Share on Twitter share_facebook: Share on Facebook share_gplus: Share on Google+ + share_comment: Comment on %{version_name} from process draft %{process_name} diff --git a/config/locales/legislation.es.yml b/config/locales/legislation.es.yml index 1b91ef5c3..4343a9749 100644 --- a/config/locales/legislation.es.yml +++ b/config/locales/legislation.es.yml @@ -112,3 +112,4 @@ es: share_twitter: Compartir en Twitter share_facebook: Compartir en Facebook share_gplus: Compartir en Google+ + share_comment: Comentario sobre la %{version_name} del borrador del proceso %{process_name}