Files
danbooru/app/views/pools/gallery.html.erb
evazion 1b30b71a07 posts: refactor post previews to use ViewComponent.
Refactor the post preview html to use the ViewComponent framework. This
lets us encapsulate all the HTML, CSS, and helper methods for a UI
component in a single place.

See https://viewcomponent.org.
2021-01-14 21:17:57 -06:00

21 lines
594 B
Plaintext

<% page_title "Pool Gallery" %>
<% meta_description "See thousands of translated anime & hentai comics, galleries, doujins, and more on #{Danbooru.config.app_name}." %>
<%= render "secondary_links" %>
<div id="c-pools">
<div id="a-gallery">
<%= render "search", :path => gallery_pools_path %>
<%= render "posts/partials/common/inline_blacklist" %>
<section>
<% @pools.each do |pool| %>
<%= post_preview(pool.cover_post, link_target: pool, pool: pool, show_deleted: true) %>
<% end %>
<%= numbered_paginator(@pools) %>
</section>
</div>
</div>