+
<%= t('comments.comment.votes', count: comment.total_votes) %>
|
<% if can?(:vote, comment) %>
<%= link_to vote_comment_path(comment, value: 'yes'),
- method: "post", remote: true do %>
-
+ method: "post", remote: true, title: t('votes.agree') do %>
+
+ <%= t('votes.agree') %>
+
<% end %>
<% else %>
-
+ <%= link_to new_user_session_path do %>
+
+ <%= t('votes.agree') %>
+
+ <% end %>
<% end %>
<%= comment.total_likes %>
+
<% if can?(:vote, comment) %>
<%= link_to vote_comment_path(comment, value: 'no'),
- method: "post", remote: true do %>
-
+ method: "post", remote: true, title: t('votes.disagree') do %>
+
+ <%= t('votes.disagree') %>
+
<% end %>
<% else %>
-
+ <%= link_to new_user_session_path do %>
+
+ <%= t('votes.disagree') %>
+
+ <% end %>
<% end %>
<%= comment.total_dislikes %>
-
-
+
+
+
<%= t("votes.comment_unauthenticated",
signin: link_to(t("votes.signin"), new_user_session_path),
signup: link_to(t("votes.signup"), new_user_registration_path)).html_safe %>
diff --git a/app/views/debates/_debate.html.erb b/app/views/debates/_debate.html.erb
index 09d7d79c0..fdb975c79 100644
--- a/app/views/debates/_debate.html.erb
+++ b/app/views/debates/_debate.html.erb
@@ -48,7 +48,7 @@
-
+
<%= render 'debates/votes', debate: debate %>
diff --git a/app/views/debates/_votes.html.erb b/app/views/debates/_votes.html.erb
index 4c5f5a9b7..cc59a3f3a 100644
--- a/app/views/debates/_votes.html.erb
+++ b/app/views/debates/_votes.html.erb
@@ -26,23 +26,23 @@
<% if user_signed_in? && current_user.organization? %>
-
-
- <%= t("votes.organizations") %>
-
-
+
+
+ <%= t("votes.organizations") %>
+
+
<% elsif user_signed_in? && !debate.votable_by?(current_user)%>
-
-
- <%= t("votes.anonymous",
- verify_account: link_to(t("votes.verify_account"), verification_path )).html_safe %>
-
-
+
+
+ <%= t("votes.anonymous",
+ verify_account: link_to(t("votes.verify_account"), verification_path )).html_safe %>
+
+
<% elsif !user_signed_in? %>
-
- <%= t("votes.unauthenticated",
- signin: link_to(t("votes.signin"), new_user_session_path),
- signup: link_to(t("votes.signup"), new_user_registration_path)).html_safe %>
-
+
+ <%= t("votes.unauthenticated",
+ signin: link_to(t("votes.signin"), new_user_session_path),
+ signup: link_to(t("votes.signup"), new_user_registration_path)).html_safe %>
+
<% end %>
diff --git a/app/views/debates/edit.html.erb b/app/views/debates/edit.html.erb
index eea353438..13a2aa625 100644
--- a/app/views/debates/edit.html.erb
+++ b/app/views/debates/edit.html.erb
@@ -1,4 +1,4 @@
-