Files
danbooru/app/views/pools/show.html.erb
evazion c1805cc4e0 views: factor out paginator component.
* Refactor the paginator into a ViewComponent.
* Fix inconsistent spacing between paginator items.
* Fix a bug where the sequential paginator generated the wrong next /
  previous page links in the <link rel="{next|prev}"> tags in the <head>.
* Always include the final page as a hidden html element, so that it can
  be unhidden with custom CSS.
* Make it easier to change the pagination window.
2021-02-18 02:47:21 -06:00

34 lines
990 B
Plaintext

<% page_title @pool.pretty_name %>
<% meta_description("#{number_with_delimiter(@pool.post_count)} posts. #{DText.excerpt(@pool.description)}") %>
<%= render_meta_links @posts %>
<%= render "secondary_links" %>
<div id="c-pools">
<div id="a-show">
<h1>
<%= @pool.pretty_category %>:
<%= link_to @pool.pretty_name, posts_path(:tags => "pool:#{@pool.id}"), :class => "pool-category-#{@pool.category}" %>
<% if @pool.is_deleted? %>
<span class="inactive">(deleted)</span>
<% end %>
</h1>
<div id="description" class="prose mb-4">
<%= format_text(@pool.description) %>
</div>
<%= render "posts/partials/common/inline_blacklist" %>
<section>
<% if @pool.post_count == 0 %>
<%= render "post_sets/blank" %>
<% else %>
<%= post_previews_html(@posts, tags: "pool:#{@pool.id}", show_deleted: @pool.is_series?) %>
<%= numbered_paginator(@posts) %>
<% end %>
</section>
</div>
</div>