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

@@ -24,6 +24,10 @@ module ComponentsHelper
render PostVotesTooltipComponent.new(post: post, **options)
end
def render_comment_votes_tooltip(comment, **options)
render CommentVotesTooltipComponent.new(comment: comment, **options)
end
def render_favorites_tooltip(post, **options)
render FavoritesTooltipComponent.new(post: post, **options)
end