diff options
| author | Paul Buetow <paul@buetow.org> | 2026-06-15 12:47:25 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-06-15 12:47:25 +0300 |
| commit | 3adeaa68af3bac73450a4156edb51fd1ec88347a (patch) | |
| tree | 2962fbadd005c51fa82206de3a6982377f262969 /share/templates/default/camera.tmpl | |
| parent | 840585ffc6f879b3e48e508a36da10471025e142 (diff) | |
Add EXIF mouse-over tooltip to the normal image view
The details view already showed a title="" hover summary (camera, aperture,
ISO, shutter, date) on its image; the normal image view did not. Wire the
same tooltip into view.tmpl:
- render_view_page now computes the EXIF tooltip via photo_exif_tooltip_text
(reusing the shared identify cache, so no extra ImageMagick work) and passes
it as the exif_tooltip context var.
- exif_tooltip is now a required render field for the view template too.
- view.tmpl adds the title="" attribute to its <img> when the summary is
non-empty, mirroring details.tmpl (no title when there is no EXIF).
- Tests: extend the EXIF render test to assert the view image carries the same
tooltip, and update the required-context-vars expectation for view.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'share/templates/default/camera.tmpl')
0 files changed, 0 insertions, 0 deletions
