pools: fix pool gallery page layout.

Fix the /pools/gallery page layout being broken by 8841de68a.

This required refactoring the PostGalleryComponent to take a set of
PostPreviewComponents instead of a set of Posts.

The upshot is that it's technically possible to have adjustable
thumbnail sizes on the pool gallery page now (although this is not yet
exposed in the UI).
This commit is contained in:
evazion
2021-12-05 01:45:31 -06:00
parent 8841de68ac
commit 2e6f480d07
10 changed files with 58 additions and 54 deletions

View File

@@ -10,6 +10,10 @@
<%= render "explore/posts/nav_links", path: :curated_explore_posts_path, date: @date, scale: @scale %>
<%= render "posts/partials/common/inline_blacklist" %>
<%= render_post_gallery(@posts) %>
<%= render_post_gallery(@posts) do |gallery| %>
<% gallery.footer do %>
<%= numbered_paginator(@posts) %>
<% end %>
<% end %>
</div>
</div>

View File

@@ -10,6 +10,10 @@
<%= render "explore/posts/nav_links", path: :popular_explore_posts_path, date: @date, scale: @scale %>
<%= render "posts/partials/common/inline_blacklist" %>
<%= render_post_gallery(@posts) %>
<%= render_post_gallery(@posts) do |gallery| %>
<% gallery.footer do %>
<%= numbered_paginator(@posts) %>
<% end %>
<% end %>
</div>
</div>