diff options
| author | Paul Buetow <paul@buetow.org> | 2026-06-22 11:06:56 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-06-22 11:06:56 +0300 |
| commit | bc60e4c42a29fcecb944f1ca5fa7d68d12d083ff (patch) | |
| tree | 16a67f6ebf71a110fe3428cbf60812dc92bf6a40 /share/templates | |
| parent | b84647c749dabdc011f62d8e8213743fd03f565b (diff) | |
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 "<page_num>-" (view
pages "<page>-<n>.html") and the stats mini-albums pass "" (view pages
bare "<n>.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 <noreply@anthropic.com>
Diffstat (limited to 'share/templates')
| -rw-r--r-- | share/templates/default/camera.tmpl | 2 |
1 files changed, 2 insertions, 0 deletions
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 <<END </div> </div> <div class="camera-thumbs"> +<div class="thumbs-grid"> ${render_camera_thumbs_html} </div> +</div> END |
