From 77b99c1b5c0d0548ece8cf1cae7128b321cdaaf3 Mon Sep 17 00:00:00 2001 From: Alberto Garcia Cabeza Date: Tue, 12 Jul 2016 13:48:55 +0200 Subject: [PATCH] Adds text to icons like and unlike on debates --- app/views/debates/_votes.html.erb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/views/debates/_votes.html.erb b/app/views/debates/_votes.html.erb index 9ac6638d6..4c5f5a9b7 100644 --- a/app/views/debates/_votes.html.erb +++ b/app/views/debates/_votes.html.erb @@ -3,7 +3,9 @@
<%= link_to vote_debate_path(debate, value: 'yes'), class: "like #{voted_classes[:in_favor]}", title: t('votes.agree'), method: "post", remote: true do %> - + + <%= t('votes.agree') %> + <%= votes_percentage('likes', debate) %> <% end %>
@@ -12,7 +14,9 @@
<%= link_to vote_debate_path(debate, value: 'no'), class: "unlike #{voted_classes[:against]}", title: t('votes.disagree'), method: "post", remote: true do %> - + + <%= t('votes.disagree') %> + <%= votes_percentage('dislikes', debate) %> <% end %>