<% if post.is_deleted? %>
This post has been deleted
<% end %> <% if (post.is_flagged? || post.is_deleted?) && post.flags.any? %>

This post has been flagged for deletion:

<%= post_flag_reasons(post) %>
<% end %> <% if post.is_pending? %>
This post is pending approval (<%= link_to "learn more", wiki_pages_path(:title => "help:post_moderation") %>) <% 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 has been appealed:

<%= post_appeal_reasons(post) %>
<% end %> <% if post.parent_id %>
This post belongs to a <%= link_to "parent", post_path(post.parent_id) %> (<%= link_to "learn more", wiki_pages_path(:title => "help:post_relationships") %>)
<% end %> <% if post.has_children? %>
This post has <%= link_to "children", posts_path(:tags => "parent:#{post.id}") %> (<%= link_to "learn more", wiki_pages_path(:title => "help:post_relationships") %>)
<% end %>