when comments are -1, just collapse them

avoids piling on and engaging with trolls
This commit is contained in:
joshua stein 2016-03-24 13:55:25 -05:00
parent d54427df21
commit 84394c5de6

View file

@ -1,14 +1,13 @@
<input id="comment_folder_<%= comment.short_id %>"
class="comment_folder_button" type="checkbox"/>
class="comment_folder_button" type="checkbox"
<%= comment.score <= -1 ? "checked" : "" %>>
<div id="comment_<%= comment.short_id %>"
data-shortid="<%= comment.short_id if comment.persisted? %>"
class="comment <%= comment.current_vote ? (comment.current_vote[:vote] == 1 ?
"upvoted" : "downvoted") : "" %>
<%= comment.highlighted ? "highlighted" : "" %>
<%= comment.score <= 0 ? "negative" : "" %>
<%= comment.score <= -1 ? "negative_1" : "" %>
<%= comment.score <= -3 ? "negative_3" : "" %>
<%= comment.score <= -5 ? "negative_5" : "" %>">
<%= comment.score <= -1 ? "negative_1" : "" %>">
<% if !comment.is_gone? %>
<div class="voters">
<% if @user %>