diff --git a/app/views/legislation/annotations/show.html.erb b/app/views/legislation/annotations/show.html.erb index 25d56e99c..89b371821 100644 --- a/app/views/legislation/annotations/show.html.erb +++ b/app/views/legislation/annotations/show.html.erb @@ -8,6 +8,10 @@
<%= render 'version_chooser', process: @process, draft_version: @draft_version %> +
+ <%= render '/legislation/shared/share_buttons', title: @annotation.quote %> +
+
diff --git a/app/views/legislation/questions/show.html.erb b/app/views/legislation/questions/show.html.erb index b99e7b17f..9a290e364 100644 --- a/app/views/legislation/questions/show.html.erb +++ b/app/views/legislation/questions/show.html.erb @@ -39,11 +39,7 @@

<%= t('.share') %>

diff --git a/app/views/legislation/shared/_share_buttons.html.erb b/app/views/legislation/shared/_share_buttons.html.erb new file mode 100644 index 000000000..acc86f4ea --- /dev/null +++ b/app/views/legislation/shared/_share_buttons.html.erb @@ -0,0 +1,5 @@ + diff --git a/config/locales/legislation.en.yml b/config/locales/legislation.en.yml index 56e34b800..4517e1f31 100644 --- a/config/locales/legislation.en.yml +++ b/config/locales/legislation.en.yml @@ -98,9 +98,6 @@ en: next_question: Next question first_question: First question share: Share - share_twitter: Share on Twitter - share_facebook: Share on Facebook - share_gplus: Share on Google+ title: Collaborative legislation process participation: phase_not_open: This phase is not open @@ -111,3 +108,7 @@ en: verified_only: Only verified users can participate, %{verify_account}. verify_account: verify your account debate_phase_not_open: Debate phase has finished and answers are not accepted anymore + shared: + share_twitter: Share on Twitter + share_facebook: Share on Facebook + share_gplus: Share on Google+ diff --git a/config/locales/legislation.es.yml b/config/locales/legislation.es.yml index fe20128ff..1b91ef5c3 100644 --- a/config/locales/legislation.es.yml +++ b/config/locales/legislation.es.yml @@ -98,9 +98,6 @@ es: next_question: Siguiente pregunta first_question: Primera pregunta share: Compartir - share_twitter: Compartir en Twitter - share_facebook: Compartir en Facebook - share_gplus: Compartir en Google+ title: Proceso de legislación colaborativa participation: phase_not_open: Esta fase no está abierta @@ -111,3 +108,7 @@ es: verified_only: Solo los usuarios verificados pueden participar en el debate, %{verify_account}. verify_account: verifica tu cuenta debate_phase_not_open: La fase de debate previo ya ha finalizado y en este momento no se aceptan respuestas + shared: + share_twitter: Compartir en Twitter + share_facebook: Compartir en Facebook + share_gplus: Compartir en Google+