% if post.is_flagged? && !post.is_deleted? && post.flags.any? %>
This post was flagged for review (<%= link_to_wiki "learn more", "howto:flag" %>):
<%= render "post_flags/reasons", flags: post.flags %>
<% end %>
<% if post.is_banned? %>
The artist requested removal of this page
<% end %>
<% if post.is_deleted? %>
<% if post.flags.any? %>
This post was deleted for the following reasons:
<%= render "post_flags/reasons", flags: post.flags %>
<% else %>
This post was deleted
<% end %>
<%= render "post_disapprovals/counts", :disapprovals => post.disapprovals, :post => post %>
<% if CurrentUser.id == post.uploader_id %>
If you don't understand why your upload was deleted, you can ask for
advice in the Upload Feedback Thread on the forum.
<% end %>
<% end %>
<% if post.is_pending? || post.is_flagged? %>
<% if post.is_pending? %>
This post is pending approval.
(<%= link_to_wiki "learn more", "about:mod_queue" %>)
<% else %>
This post was flagged and is pending approval (<%= link_to_wiki "learn more", "about:mod_queue" %>)
<% end %>
<%= render "post_disapprovals/counts", :disapprovals => post.disapprovals, :post => post %>
<% if policy(PostDisapproval).create? && !post.disapproved_by?(CurrentUser.user) %>
<%= render "modqueue/quick_mod", post: post %>
<%= render "post_disapprovals/detailed_rejection_dialog" %>
<% end %>
<% end %>
<% if (post.is_flagged? || post.is_deleted?) && post.appeals.any? %>
This post was appealed:
<%= render "post_appeals/reasons", appeals: post.appeals %>
<% end %>
<% if post.parent.present? %>
<%= render "posts/partials/show/parent_notice", parent: post.parent, children: @sibling_posts.to_a %>
<% end %>
<% if post.has_visible_children? %>
<%= render "posts/partials/show/child_notice", parent: post, children: @child_posts.to_a %>
<% end %>
<% if policy(post).visible? && post.has_large? && !post.is_ugoira? %>
Resized to <%= number_to_percentage post.resize_percentage.floor, precision: 0 %> of original (<%= link_to "view original", post.tagged_file_url, class: "image-view-original-link" %>)
<% end %>