Files
danbooru/app/components/post_gallery_component/post_gallery_component.html.erb
evazion 40568a9843 posts: fix parent/child post layout.
Fix regression causing parent/child posts to be laid out as a grid
instead of as a single row of posts.
2021-12-05 02:52:08 -06:00

14 lines
302 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">
<% posts.each do |post| -%>
<% %><%= post -%>
<% end -%>
</div>
<% end %>
<%= footer %>
</div>