Question title for page and share links

This commit is contained in:
Amaia Castro
2016-12-22 17:27:59 +01:00
parent aefa875ae2
commit f68b6a2f32
3 changed files with 12 additions and 4 deletions

View File

@@ -1,3 +1,5 @@
<% provide :title do %><%= @question.title %><% end %>
<section class="debate-quiz"> <section class="debate-quiz">
<div class="quiz-header row small-collapse"> <div class="quiz-header row small-collapse">
<div class="small-12 medium-9 column"> <div class="small-12 medium-9 column">
@@ -37,10 +39,10 @@
<div id="social-share" class="sidebar-divider"></div> <div id="social-share" class="sidebar-divider"></div>
<h3><%= t('.share') %></h3> <h3><%= t('.share') %></h3>
<div class="social-share-full"> <div class="social-share-full">
<div class="social-share-button" data-title="Soluta sed sapiente dolores. #consul_dev" data-img="" data-url="" data-desc="" data-via=""> <div class="social-share-button" data-title="<%= @question.title %>" data-img="" data-url="" data-desc="" data-via="">
<a rel="nofollow " data-site="twitter" class="ssb-icon ssb-twitter" onclick="return SocialShareButton.share(this);" title="Compartir en Twitter" href="#"><span class="sr-only">twitter</span></a> <a rel="nofollow " data-site="twitter" class="ssb-icon ssb-twitter" onclick="return SocialShareButton.share(this);" title="<%= t('.share_twitter') %>" href="#"><span class="sr-only">twitter</span></a>
<a rel="nofollow " data-site="facebook" class="ssb-icon ssb-facebook" onclick="return SocialShareButton.share(this);" title="Compartir en Facebook" href="#"><span class="sr-only">facebook</span></a> <a rel="nofollow " data-site="facebook" class="ssb-icon ssb-facebook" onclick="return SocialShareButton.share(this);" title="<%= t('.share_facebook') %>" href="#"><span class="sr-only">facebook</span></a>
<a rel="nofollow " data-site="google_plus" class="ssb-icon ssb-google_plus" onclick="return SocialShareButton.share(this);" title="Compartir en Google+" href="#"><span class="sr-only">google_plus</span></a> <a rel="nofollow " data-site="google_plus" class="ssb-icon ssb-google_plus" onclick="return SocialShareButton.share(this);" title="<%= t('.share_gplus') %>" href="#"><span class="sr-only">google_plus</span></a>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -271,6 +271,9 @@ en:
comments: COMMENTS comments: COMMENTS
next_question: Next question next_question: Next question
share: Share share: Share
share_twitter: Share on Twitter
share_facebook: Share on Facebook
share_gplus: Share on Google+
title: Collaborative legislation process title: Collaborative legislation process
locale: English locale: English
notifications: notifications:

View File

@@ -271,6 +271,9 @@ es:
comments: COMENTARIOS comments: COMENTARIOS
next_question: Siguiente pregunta next_question: Siguiente pregunta
share: Compartir share: Compartir
share_twitter: Compartir en Twitter
share_facebook: Compartir en Facebook
share_gplus: Compartir en Google+
title: Proceso de legislación colaborativa title: Proceso de legislación colaborativa
locale: Español locale: Español
notifications: notifications: