From bc60e4c42a29fcecb944f1ca5fa7d68d12d083ff Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 22 Jun 2026 11:06:56 +0300 Subject: Reuse the album tile grid for stats mini-album galleries (DRY) The per-camera and per-filter stats mini-album galleries rendered their own plain img.thumb grid, so they did not get the dynamic tiles. Make them reuse the album's shared grid builder instead. Generalize append_preview_grid (and build_tile_block / build_subdivided_tile / build_preview_thumbnail) to take an href_prefix rather than a page number: the main album passes "-" (view pages "-.html") and the stats mini-albums pass "" (view pages bare ".html") -- the only difference between the two grids. The duplicate _stats_filter_thumbnail is removed; _stats_build_filter_thumbs now calls append_preview_grid, and camera.tmpl wraps the result in the same thumbs-grid container. Stats galleries now get the identical 2x2 feature tiles, subdivided sub-thumbnails, entry animations and hover effects as the main overview. Co-Authored-By: Claude Opus 4.8 --- share/templates/default/camera.tmpl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'share/templates/default/camera.tmpl') diff --git a/share/templates/default/camera.tmpl b/share/templates/default/camera.tmpl index 3b9d2f6..b1f6363 100644 --- a/share/templates/default/camera.tmpl +++ b/share/templates/default/camera.tmpl @@ -21,6 +21,8 @@ cat <
+
${render_camera_thumbs_html}
+
END -- cgit v1.2.3