* Fix inconsistencies in how wiki pages were linked. * Link directly to the wiki instead of to a title search that is expected to redirect to the wiki.
77 lines
3.2 KiB
Plaintext
77 lines
3.2 KiB
Plaintext
<% if post.is_flagged? && !post.is_deleted? && post.flags.any? %>
|
|
<div class="notice notice-small post-notice post-notice-flagged">
|
|
<p>This post was flagged for review (<%= link_to_wiki "learn more", "howto:flag" %>): </p>
|
|
|
|
<%= render "post_flags/reasons", flags: post.flags %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<% if post.is_banned? %>
|
|
<div class="notice notice-small post-notice post-notice-banned">
|
|
The artist requested removal of this page
|
|
</div>
|
|
<% end %>
|
|
|
|
<% if post.is_deleted? %>
|
|
<div class="notice notice-small post-notice post-notice-deleted">
|
|
<% if post.flags.any? %>
|
|
<p>This post was deleted for the following reasons: </p>
|
|
<%= render "post_flags/reasons", flags: post.flags %>
|
|
<% else %>
|
|
<p>This post was deleted</p>
|
|
<% end %>
|
|
|
|
<%= render "post_disapprovals/counts", :disapprovals => post.disapprovals, :post => post %>
|
|
|
|
<% if CurrentUser.id == post.uploader_id && Danbooru.config.upload_feedback_topic.present? %>
|
|
<p>If you don't understand why your uploads keep getting deleted, you should ask on the <%= link_to "forum", forum_topic_path(Danbooru.config.upload_feedback_topic) %> for advice.</p>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<% if post.is_pending? || post.is_flagged? %>
|
|
<div class="notice notice-small post-notice post-notice-pending">
|
|
<% 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 CurrentUser.can_approve_posts? && !post.disapproved_by?(CurrentUser.user) %>
|
|
<%= render "moderator/post/queues/quick_mod", post: post %>
|
|
<%= render "post_disapprovals/detailed_rejection_dialog" %>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<% if (post.is_flagged? || post.is_deleted?) && post.appeals.any? %>
|
|
<div class="notice notice-small post-notice post-notice-appealed">
|
|
<p>This post was appealed:</p>
|
|
<%= render "post_appeals/reasons", appeals: post.appeals %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<% if post.parent_id && post.parent_exists? %>
|
|
<div class="notice notice-small post-notice post-notice-child">
|
|
<%= has_parent_message(post, @parent_post_set) %>
|
|
<div id="has-parent-relationship-preview"><%= @parent_post_set.presenter.post_previews_html(self) %></div>
|
|
</div>
|
|
<% end %>
|
|
|
|
<% if post.has_visible_children? %>
|
|
<div class="notice notice-small post-notice post-notice-parent">
|
|
<%= has_children_message(post, @children_post_set) %>
|
|
<div id="has-children-relationship-preview"><%= @children_post_set.presenter.post_previews_html(self) %></div>
|
|
</div>
|
|
<% end %>
|
|
|
|
<% if post.visible? && post.has_large? && !post.is_ugoira? %>
|
|
<div class="notice notice-small post-notice post-notice-resized" id="image-resize-notice" style="<%= CurrentUser.default_image_size == "original" ? "display: none;" : "" %>">
|
|
<span>Resized to <%= number_to_percentage post.resize_percentage.floor, :precision => 0 %> of original (<%= link_to "view original", post.tagged_file_url, :id => "image-resize-link" %>)</span>
|
|
<span style="display: none;">Loading...</span>
|
|
</div>
|
|
<% end %>
|