47 lines
1.8 KiB
Plaintext
47 lines
1.8 KiB
Plaintext
<% if post.is_deleted? %>
|
|
<div class="ui-corner-all ui-state-error notice">
|
|
This post has been deleted
|
|
</div>
|
|
<% end %>
|
|
|
|
<% if (post.is_flagged? || post.is_deleted?) && post.flags.any? %>
|
|
<div class="ui-corner-all ui-state-highlight notice">
|
|
<p>This post has been flagged for deletion: </p>
|
|
|
|
<%= post_flag_reasons(post) %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<% if post.is_pending? %>
|
|
<div class="ui-corner-all ui-state-highlight notice" id="pending-approval-notice">
|
|
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) %>
|
|
<div class="quick-mod">
|
|
<% 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" %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<% if (post.is_flagged? || post.is_deleted?) && post.appeals.any? %>
|
|
<div class="ui-corner-all ui-state-highlight notice">
|
|
<p>This post has been appealed:</p>
|
|
<%= post_appeal_reasons(post) %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<% if post.parent_id %>
|
|
<div class="ui-corner-all ui-state-highlight notice">
|
|
This post belongs to a <%= link_to "parent", post_path(post.parent_id) %> (<%= link_to "learn more", wiki_pages_path(:title => "help:post_relationships") %>)
|
|
</div>
|
|
<% end %>
|
|
|
|
<% if post.has_children? %>
|
|
<div class="ui-corner-all ui-state-highlight notice">
|
|
This post has <%= link_to "children", posts_path(:tags => "parent:#{post.id}") %> (<%= link_to "learn more", wiki_pages_path(:title => "help:post_relationships") %>)
|
|
</div>
|
|
<% end %> |