forked from e621ng/e621ng
Fix bad class constant reference in disapproval counts
This commit is contained in:
parent
af9d85721a
commit
cef4d5df1d
@ -1,4 +1,4 @@
|
||||
<% if (CurrentUser.can_approve_posts? || post.created_at < PostDisapproval.DELETION_THRESHOLD.ago) && disapprovals.length > 0 %>
|
||||
<% if (CurrentUser.can_approve_posts? || post.created_at < PostDisapproval::DELETION_THRESHOLD.ago) && disapprovals.length > 0 %>
|
||||
<% if disapprovals.map(&:reason).grep("borderline_relevancy").count > 0 %>
|
||||
(relevancy: <%= disapprovals.map(&:reason).grep("borderline_relevancy").count %>)
|
||||
<% end %>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<% if (CurrentUser.can_approve_posts? || post.created_at < PostDisapproval.DELETION_THRESHOLD.ago) && disapprovals.length > 0 %>
|
||||
<% if (CurrentUser.can_approve_posts? || post.created_at < PostDisapproval::DELETION_THRESHOLD.ago) && disapprovals.length > 0 %>
|
||||
<p>
|
||||
It has been reviewed by <%= pluralize disapprovals.length, "approver" %>.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user