Fix 'Posts Report "Reviewed by 0 Moderators"' (#2914).

This commit is contained in:
evazion
2017-03-03 15:32:51 -06:00
parent bfca698632
commit 167d86d4ec
2 changed files with 2 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
<% if CurrentUser.can_approve_posts? || post.created_at < 3.days.ago %>
<% if (CurrentUser.can_approve_posts? || post.created_at < 3.days.ago) && disapprovals.length > 0 %>
<% if disapprovals.map(&:reason).grep("breaks_rules").count > 0 %>
(breaks rules: <%= disapprovals.map(&:reason).grep("breaks_rules").count %>)
<% end %>

View File

@@ -1,4 +1,4 @@
<% if CurrentUser.can_approve_posts? || post.created_at < 3.days.ago %>
<% if (CurrentUser.can_approve_posts? || post.created_at < 3.days.ago) && disapprovals.length > 0 %>
<p>
It has been reviewed by <%= pluralize disapprovals.length, "moderator" %>.