<% if user_signed_in? %> <%= 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 %> <%= t('votes.agree') %> <% end %> <% else %> <% end %> <%= comment.total_likes %> <% if can?(:vote, comment) %> <%= link_to vote_comment_path(comment, value: 'no'), method: "post", remote: true do %> <%= t('votes.disagree') %> <% end %> <% else %> <% end %> <%= comment.total_dislikes %> <% elsif !user_signed_in? %>
<%= 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 %> <% end %> <% else %> <% end %> <%= comment.total_likes %> <% if can?(:vote, comment) %> <%= link_to vote_comment_path(comment, value: 'no'), method: "post", remote: true do %> <% end %> <% else %> <% end %> <%= comment.total_dislikes %>
<% end %>