Share with WhatsApp in debates

This commit is contained in:
Ana
2016-03-11 00:21:39 +01:00
parent ffc00671f1
commit 927b1e8e5d
5 changed files with 27 additions and 2 deletions

View File

@@ -54,8 +54,13 @@
</div>
<div class="sidebar-divider"></div>
<h3><%= t("debates.show.share") %></h3>
<br>
<%= social_share_button_tag(@debate.title) %>
</aside>
<% if browser.mobile? %>
<a href="whatsapp://send?text=<%= @debate.title %> https://decide.madrid.es/debates/<%= @debate.to_param %>" data-action="share/whatsapp/share">
<%= icon('whatsapp', class: 'fa-2x whatsapp') %>
</a>
<% end %>
</div>
</section>
<% end %>