22 lines
839 B
Plaintext
22 lines
839 B
Plaintext
<% if disapprovals.count > 0 && (CurrentUser.can_approve_posts? || post.created_at < 3.days.ago) %>
|
|
<p>
|
|
It has been reviewed by <%= pluralize disapprovals.count, "moderator" %>.
|
|
|
|
<% if disapprovals.breaks_rules.count > 0 %>
|
|
<%= disapprovals.breaks_rules.count %> believe it breaks the rules.
|
|
<% end %>
|
|
|
|
<% if disapprovals.poor_quality.count > 0 %>
|
|
<%= disapprovals.poor_quality.count %> believe it has poor quality.
|
|
<% end %>
|
|
|
|
<% if disapprovals.disinterest.count > 0 %>
|
|
<%= disapprovals.disinterest.count %> did not like the post enough to approve it.
|
|
<% end %>
|
|
|
|
<% if disapprovals.with_message.any? %>
|
|
Messages: <%= disapprovals.map(&:message).select(&:present?).map { |msg| format_text(msg, ragel: true, inline: true) }.to_sentence.html_safe %>.
|
|
<% end %>
|
|
</p>
|
|
<% end %>
|