Fix #4931: Add popup voter list for comments.

Show the comment's upvote and downvote count when you hover over a
comment's score. For mods, show the list of voters as well.
This commit is contained in:
evazion
2021-11-24 22:13:32 -06:00
parent 594b46a85d
commit a45e6b5cfe
15 changed files with 159 additions and 9 deletions

View File

@@ -0,0 +1 @@
<%= render_comment_votes_tooltip(@comment, current_user: CurrentUser.user) %>

View File

@@ -101,6 +101,7 @@
<div id="tooltips">
<div id="post-tooltips"></div>
<div id="user-tooltips"></div>
<div id="comment-votes-tooltips"></div>
<div id="post-votes-tooltips"></div>
<div id="post-favorites-tooltips"></div>
<div id="popup-menus"></div>