forked from e621ng/e621ng
27 lines
1.2 KiB
Plaintext
27 lines
1.2 KiB
Plaintext
<div id="posts" class="user-disable-cropped-<%= Danbooru.config.enable_image_cropping? && CurrentUser.user.disable_cropped_thumbnails? %>">
|
|
<section class="posts-container">
|
|
<% if @posts.empty? %>
|
|
<%= render "posts/blank" %>
|
|
<% else %>
|
|
<% @posts.each do |post| %>
|
|
<%= post.preview_html(self, { tags: @post_set.public_tag_string, show_cropped: true, stats: CurrentUser.show_post_statistics? }) %>
|
|
<% end %>
|
|
<% end %>
|
|
</section>
|
|
|
|
<% if post_set.hidden_posts.present? %>
|
|
<div class="info hidden-posts-notice">
|
|
<% if post_set.safe_posts.present? %>
|
|
<%= post_set.safe_posts.size %> post(s) on this page were hidden by safe mode (<%= Danbooru.config.app_name %>). Go to <%= link_to "e621", "https://e621.net/" %> or disable safe mode to view (<%= link_to "learn more", help_page_path(id: "user_settings") %>).<br>
|
|
<% end %>
|
|
<% if post_set.login_blocked_posts.present? %>
|
|
<%= post_set.login_blocked_posts.size %> post(s) on this page were hidden because you need to be logged in to view them. <%= link_to "(learn more)", help_page_path(id: "global_blacklist") %>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<% unless post_set.is_random? %>
|
|
<%= numbered_paginator(post_set.posts) %>
|
|
<% end %>
|
|
</div>
|