From a73d19d6679b7d8430be216a38da4d7e713747a7 Mon Sep 17 00:00:00 2001 From: joshua stein Date: Thu, 3 Sep 2015 14:18:25 -0500 Subject: [PATCH] always show vote summary for mods --- app/views/stories/_listdetail.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/stories/_listdetail.html.erb b/app/views/stories/_listdetail.html.erb index 19a4e82..d80e647 100644 --- a/app/views/stories/_listdetail.html.erb +++ b/app/views/stories/_listdetail.html.erb @@ -157,7 +157,9 @@ class="story <%= story.vote && story.vote[:vote] == 1 ? "upvoted" : "" %> <% end %> - <% if defined?(single_story) && single_story && story.downvotes >= 3 %> + <% if defined?(single_story) && single_story && + ((story.downvotes > 0 && @user && @user.is_moderator?) || + (story.downvotes >= 3)) %> | <%= story.vote_summary_for(@user).downcase %> <% end %> <% end %>