Merge pull request #2916 from evazion/fix-2914

Fix 'Posts Report "Reviewed by 0 Moderators"' (#2914).
This commit is contained in:
Albert Yi
2017-03-03 14:30:59 -08:00
committed by GitHub
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" %>.