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).
14 lines
313 B
Plaintext
14 lines
313 B
Plaintext
<div class="post-gallery post-gallery-<%= gallery_type %> post-gallery-<%= size %>">
|
|
<% if posts.empty? %>
|
|
<p>No posts found.</p>
|
|
<% else %>
|
|
<div class="posts-container grid gap-2">
|
|
<% posts.each do |post| -%>
|
|
<% %><%= post -%>
|
|
<% end -%>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%= footer %>
|
|
</div>
|