Share with Whatsapp improvement

This commit is contained in:
Ana
2016-03-11 00:34:07 +01:00
parent f866c7be8f
commit f4b7e0c142
3 changed files with 17 additions and 15 deletions

View File

@@ -54,13 +54,14 @@
</div>
<div class="sidebar-divider"></div>
<h3><%= t("debates.show.share") %></h3>
<br>
<%= social_share_button_tag(@debate.title) %>
<% 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 class="social_share_full">
<%= social_share_button_tag(@debate.title) %>
<% 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>
</div>
</section>
<% end %>