Skip to content

Commit

Permalink
Merge pull request #454 from iBug/feature-1
Browse files Browse the repository at this point in the history
Hide post feedbacks in review queues
  • Loading branch information
ArtOfCode- committed Jun 11, 2018
2 parents 7ac9f27 + 66ac3f7 commit 07895b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/views/posts/_post.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<% wrap_in_tr = true if wrap_in_tr.nil? %>
<% expand_post = false if expand_post.nil? %>
<% preload_post_body = expand_post || (false if preload_post_body.nil?) %>
<% hide_feedbacks = false if hide_feedbacks.nil? %>
<% deletion_date = false if deletion_date.nil? %>
<% show_autoflagged = false if show_autoflagged.nil? %>
<% show_autoflaggers = show_autoflagged if show_autoflaggers.nil? %>
Expand All @@ -20,7 +21,7 @@
<span class="glyphicon glyphicon-flag text-danger" title="This post was autoflagged"></span>
<% end %>
<% if not post.feedbacks.empty? %>
<% unless post.feedbacks.empty? or hide_feedbacks %>
<strong>
<% post.feedbacks.each do |feedback| %>
<% next if (feedback.is_positive? and feedback.is_negative?) or (not feedback.is_positive? and not feedback.is_negative? and not feedback.is_naa?) %>
Expand Down
4 changes: 2 additions & 2 deletions app/views/posts/_review_item.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="review-item">
<%= render 'review_queues/responses', queue: queue, item: item %>
<%= render 'posts/post', post: item.reviewable, expand_post: true %>
</div>
<%= render 'posts/post', post: item.reviewable, expand_post: true, hide_feedbacks: true %>
</div>

0 comments on commit 07895b0

Please sign in to comment.