summaryrefslogtreecommitdiff
path: root/share/templates/default/camera.tmpl
blob: b1f6363d3892c9a5317c567d787aca3c7344f352 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Per-camera filter page body (task um0). Like stats.tmpl, all the variable-length
# markup -- here the thumbnail grid of every photo shot with this camera -- is
# pre-rendered by render_camera_pages in src/lib/stats.source.sh and handed in
# through the raw context field render_camera_thumbs_html, so this template only
# supplies the page chrome: the heading (the HTML-escaped camera name), the
# pre-built grid, and a link back to the stats page. The surrounding
# <html>/<head>/<body> and footer come from the header/footer templates, which
# render_camera_pages emits around this one (same pattern as stats/view/details).
#
# This is a self-contained mini album: each thumbnail links to a per-camera view
# page (camera-<slug>--<index>.html) whose prev/next navigation cycles only
# through this camera's photos (see render_camera_pages). The heading and back
# link sit in the narrow centered stats column, but the thumbnail grid is a
# full-width sibling so it flows and wraps with the window like the main album
# (the album thumbnails are likewise direct, full-width body children).
cat <<END
<div class="view stats camera">
    <h1 class="stats-title">${render_title_html} &mdash; ${render_camera_name_html}</h1>
    <div class="stats-back navigator">
        <a href="${render_backhref_html}/stats/index.html">Back to stats</a>
    </div>
</div>
<div class="camera-thumbs">
<div class="thumbs-grid">
${render_camera_thumbs_html}
</div>
</div>
END