<% if post.is_flagged? && !post.is_deleted? && post.flags.any? %>

This post was flagged for deletion:

<%= post_flag_reasons(post) %>
<% end %> <% if (post.is_banned? || post.is_deleted?) && post.flags.empty? %>
<% if post.is_banned? %> This post was removed because it was requested by the artist <% else %> This post was deleted <% end %>
<% end %> <% if post.is_deleted? && post.flags.any? %>

This post was deleted for the following reasons:

<%= post_flag_reasons(post) %>
<% end %> <% if post.is_pending? %>
This post is pending approval (<%= link_to "learn more", wiki_pages_path(:title => "about:mod_queue") %>) <% if CurrentUser.is_janitor? && !post.disapproved_by?(CurrentUser.user) %>
<% unless post.is_status_locked? %> <%= link_to "Approve", moderator_post_approval_path(:post_id => post.id), :method => :post, :remote => true, :class => "btn" %> | <% end %> <%= link_to "Hide from queue", moderator_post_disapproval_path(:post_id => post.id), :method => :post, :remote => true, :class => "btn" %>
<% end %>
<% end %> <% if (post.is_flagged? || post.is_deleted?) && post.appeals.any? %>

This post was appealed:

<%= post_appeal_reasons(post) %>
<% end %> <% if post.parent_id && post.parent_exists? %>
<%= has_parent_message(post, @parent_post_set) %>
<%= @parent_post_set.presenter.post_previews_html(self) %>
<% end %> <% if post.has_children? %>
<%= has_children_message(post, @children_post_set) %>
<%= @children_post_set.presenter.post_previews_html(self) %>
<% end %> <% if post.has_large? && CurrentUser.default_image_size == "large" %>
Resized to <%= number_to_percentage post.resize_percentage.floor, :precision => 0 %> of original (<%= link_to "view original", post.file_url, :id => "image-resize-link" %>)
<% end %>