fixes #2447: Display disapproval counts in status bar to uploader and approvers

This commit is contained in:
r888888888
2015-07-24 14:24:51 -07:00
parent abb232d4e6
commit 40a9f3658c
2 changed files with 17 additions and 14 deletions

View File

@@ -1,13 +1,17 @@
It has been reviewed by <%= pluralize disapprovals.count, "moderator" %>.
<% if disapprovals.count > 0 %>
<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.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.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.disinterest.count > 0 %>
<%= disapprovals.disinterest.count %> did not like the post enough to approve it.
<% end %>
</p>
<% end %>