From c01caeb787e41ae261ed455dfba695254fc4e2e7 Mon Sep 17 00:00:00 2001 From: Toks Date: Mon, 24 Mar 2014 23:27:58 -0400 Subject: [PATCH] Fix notice for banned posts --- .../posts/partials/show/_notices.html.erb | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/app/views/posts/partials/show/_notices.html.erb b/app/views/posts/partials/show/_notices.html.erb index 3e336691d..82bc2de7c 100644 --- a/app/views/posts/partials/show/_notices.html.erb +++ b/app/views/posts/partials/show/_notices.html.erb @@ -6,21 +6,20 @@ <% end %> -<% if (post.is_banned? || post.is_deleted?) && post.flags.empty? %> +<% if post.is_banned? %>
- <% if post.is_banned? %> - This post was removed because it was requested by the artist - <% else %> - This post was deleted - <% end %> + This post was removed because it was requested by the artist
<% end %> -<% if post.is_deleted? && post.flags.any? %> +<% if post.is_deleted? %>
-

This post was deleted for the following reasons:

- - <%= post_flag_reasons(post) %> + <% if post.flags.any? %> +

This post was deleted for the following reasons:

+ <%= post_flag_reasons(post) %> + <% else %> + This post was deleted + <% end %>
<% end %>