app/components/comments/votes_component.html.erb
<div class="votes">
<%= t("comments.comment.votes", count: comment.total_votes) %>
|
<div class="in-favor">
<%= render Shared::VoteButtonComponent.new(comment,
value: "yes",
title: t("votes.agree")) %>
<%= comment.total_likes %>
</div>
<div class="against">
<%= render Shared::VoteButtonComponent.new(comment,
value: "no",
title: t("votes.disagree")) %>
<%= comment.total_dislikes %>
</div>
</div>