From 95e10e3acd9f71f75bb58d56baf784a7189f006e Mon Sep 17 00:00:00 2001 From: r888888888 Date: Wed, 22 Jul 2015 11:29:46 -0700 Subject: [PATCH] fixes #2447: Display disapproval counts in status bar to uploader and approvers --- app/views/posts/partials/show/_notices.html.erb | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/app/views/posts/partials/show/_notices.html.erb b/app/views/posts/partials/show/_notices.html.erb index c67b394ed..b88aef857 100644 --- a/app/views/posts/partials/show/_notices.html.erb +++ b/app/views/posts/partials/show/_notices.html.erb @@ -26,7 +26,19 @@ <% if post.is_pending? || post.is_flagged? %>
<% if post.is_pending? %> - This post is pending approval (<%= link_to "learn more", wiki_pages_path(:title => "about:mod_queue") %>) + This post is pending approval. + It has been reviewed by <%= pluralize post.disapprovals.count, "moderator" %>. + <% if post.disapprovals.breaks_rules.count > 0 %> + <%= post.disapprovals.breaks_rules.count %> believe it breaks the rules. + <% end %> + <% if post.disapprovals.poor_quality.count > 0 %> + <%= post.disapprovals.poor_quality.count %> believe it has poor quality. + <% end %> + <% if post.disapprovals.disinterest.count > 0 %> + <%= post.disapprovals.disinterest.count %> did not like the post enough to approve it. + <% end %> + + (<%= link_to "learn more", wiki_pages_path(:title => "about:mod_queue") %>) <% else %> This post was flagged and is pending approval (<%= link_to "learn more", wiki_pages_path(:title => "about:mod_queue") %>) <% end %>