when comments are -1, just collapse them
avoids piling on and engaging with trolls
This commit is contained in:
parent
d54427df21
commit
84394c5de6
|
@ -1,14 +1,13 @@
|
||||||
<input id="comment_folder_<%= comment.short_id %>"
|
<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 %>"
|
<div id="comment_<%= comment.short_id %>"
|
||||||
data-shortid="<%= comment.short_id if comment.persisted? %>"
|
data-shortid="<%= comment.short_id if comment.persisted? %>"
|
||||||
class="comment <%= comment.current_vote ? (comment.current_vote[:vote] == 1 ?
|
class="comment <%= comment.current_vote ? (comment.current_vote[:vote] == 1 ?
|
||||||
"upvoted" : "downvoted") : "" %>
|
"upvoted" : "downvoted") : "" %>
|
||||||
<%= comment.highlighted ? "highlighted" : "" %>
|
<%= comment.highlighted ? "highlighted" : "" %>
|
||||||
<%= comment.score <= 0 ? "negative" : "" %>
|
<%= comment.score <= 0 ? "negative" : "" %>
|
||||||
<%= comment.score <= -1 ? "negative_1" : "" %>
|
<%= comment.score <= -1 ? "negative_1" : "" %>">
|
||||||
<%= comment.score <= -3 ? "negative_3" : "" %>
|
|
||||||
<%= comment.score <= -5 ? "negative_5" : "" %>">
|
|
||||||
<% if !comment.is_gone? %>
|
<% if !comment.is_gone? %>
|
||||||
<div class="voters">
|
<div class="voters">
|
||||||
<% if @user %>
|
<% if @user %>
|
||||||
|
|
Loading…
Reference in a new issue