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

@@ -2,15 +2,7 @@
<div id="c-comment-votes">
<div id="a-index">
<%= search_form_for(comment_votes_path) do |f| %>
<%= f.input :user_name, label: "Voter", input_html: { value: params[:search][:user_name], "data-autocomplete": "user" } %>
<%= f.simple_fields_for :comment do |fc| %>
<%= fc.input :creator_name, label: "Commenter", input_html: { value: params.dig(:search, :comment, :creator_name), "data-autocomplete": "user" } %>
<%= fc.input :post_tags_match, label: "Tags", input_html: { value: params.dig(:search, :comment, :post_tags_match), "data-autocomplete": "tag-query" } %>
<% end %>
<%= f.input :score, collection: [["+1", "1"], ["-1", "-1"]], include_blank: true, selected: params[:search][:score] %>
<%= f.submit "Search" %>
<% end %>
<%= render "search" %>
<%= table_for @comment_votes, class: "striped autofit" do |t| %>
<% t.column "Post" do |vote| %>