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).
20 lines
680 B
Plaintext
20 lines
680 B
Plaintext
<% page_title "Popular Posts" %>
|
|
<% meta_description "The most popular posts of #{date_range_description(@date, @scale, @min_date, @max_date)}" %>
|
|
|
|
<%= render "posts/partials/common/secondary_links" %>
|
|
|
|
<div id="c-explore-posts">
|
|
<div id="a-popular">
|
|
<h1>Popular: <%= date_range_description(@date, @scale, @min_date, @max_date) %></h1>
|
|
|
|
<%= render "explore/posts/nav_links", path: :popular_explore_posts_path, date: @date, scale: @scale %>
|
|
<%= render "posts/partials/common/inline_blacklist" %>
|
|
|
|
<%= render_post_gallery(@posts) do |gallery| %>
|
|
<% gallery.footer do %>
|
|
<%= numbered_paginator(@posts) %>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|