62 lines
2.4 KiB
Plaintext
62 lines
2.4 KiB
Plaintext
<% if post.is_flagged? && !post.is_deleted? && post.flags.any? %>
|
|
<div class="ui-corner-all ui-state-highlight notice">
|
|
<p>This post was flagged for deletion: </p>
|
|
|
|
<%= post_flag_reasons(post) %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<% if post.is_deleted? && post.flags.empty? %>
|
|
<div class="ui-corner-all ui-state-highlight notice">
|
|
This post was deleted
|
|
</div>
|
|
<% end %>
|
|
|
|
<% if post.is_deleted? && post.flags.any? %>
|
|
<div class="ui-corner-all ui-state-highlight notice">
|
|
<p>This post was deleted for the following reasons: </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 was 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 %>
|
|
|
|
<% if post.has_large? && CurrentUser.default_image_size == "large" %>
|
|
<div class="ui-corner-all ui-state-highlight notice" id="image-resize-notice">
|
|
Resized to <%= number_to_percentage post.resize_percentage, :precision => 0 %> of original (<%= link_to "view original", post.file_url, :id => "image-resize-link" %>)
|
|
</div>
|
|
<% end %>
|