summaryrefslogtreecommitdiff
path: root/src/lib/process.source.sh
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-06-22 11:06:56 +0300
committerPaul Buetow <paul@buetow.org>2026-06-22 11:06:56 +0300
commitbc60e4c42a29fcecb944f1ca5fa7d68d12d083ff (patch)
tree16a67f6ebf71a110fe3428cbf60812dc92bf6a40 /src/lib/process.source.sh
parentb84647c749dabdc011f62d8e8213743fd03f565b (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 'src/lib/process.source.sh')
0 files changed, 0 insertions, 0 deletions