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:
@@ -4,6 +4,7 @@ class PostVotesController < ApplicationController
|
||||
def index
|
||||
@post_votes = authorize PostVote.visible(CurrentUser.user).paginated_search(params, count_pages: true)
|
||||
@post_votes = @post_votes.includes(:user, post: [:uploader, :media_asset]) if request.format.html?
|
||||
@post = Post.find(params.dig(:search, :post_id)) if params.dig(:search, :post_id).present?
|
||||
|
||||
respond_with(@post_votes)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user