/post_votes: fix the uploader column showing the voter instead.

This commit is contained in:
evazion
2020-01-07 12:06:53 -06:00
parent e8efe1107f
commit ca015a6685

View File

@@ -19,9 +19,9 @@
<%= link_to sprintf("%+d", vote.score), post_votes_path(search: { score: vote.score }) %>
<% end %>
<% t.column "Uploader" do |vote| %>
<%= link_to_user vote.user %>
<%= link_to "»", post_votes_path(search: { user_name: vote.user.name }) %>
<div><%= time_ago_in_words_tagged(vote.created_at) %></div>
<%= link_to_user vote.post.uploader %>
<%= link_to "»", post_votes_path(search: { post_tags_match: "user:#{vote.post.uploader.name}" }) %>
<div><%= time_ago_in_words_tagged(vote.post.created_at) %></div>
<% end %>
<% t.column "Voter" do |vote| %>
<%= link_to_user vote.user %>