votes: show votes when hovering over post score.
Make it so you can hover over a post's score to see the list of public upvotes. Also show the upvote count, the downvote count, and the upvote ratio.
This commit is contained in:
@@ -7,7 +7,9 @@
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<span class="post-score"><%= post.score %></span>
|
||||
<span class="post-score">
|
||||
<%= link_to post.score, post_votes_path(search: { post_id: post.id }, variant: :compact) %>
|
||||
</span>
|
||||
|
||||
<% if can_vote? %>
|
||||
<% if downvoted? %>
|
||||
|
||||
Reference in New Issue
Block a user