comments: let mods click score to see votes.

This commit is contained in:
evazion
2021-01-22 04:26:55 -06:00
parent bed5fdafb8
commit 2eecf4d695
5 changed files with 50 additions and 10 deletions

View File

@@ -0,0 +1,24 @@
<%= render "comments/secondary_links" %>
<div id="c-comment-votes">
<div id="a-index">
<%= render "search" %>
<%= table_for @comment_votes, class: "striped autofit" do |t| %>
<% t.column "Score" do |vote| %>
<%= link_to sprintf("%+d", vote.score), comment_votes_path(search: { score: vote.score }) %>
<% end %>
<% t.column "Voter" do |vote| %>
<%= link_to_user vote.user %>
<%= link_to "»", comment_votes_path(search: { user_name: vote.user.name }) %>
<% end %>
<% t.column "Created" do |vote| %>
<%= time_ago_in_words_tagged(vote.created_at) %>
<% end %>
<% end %>
<%= numbered_paginator(@comment_votes) %>
</div>
</div>