{# Shared template macros. #} {# Per-figure debug line: renders only when CTDCAST_REPORT_DEBUG is set (figdbg() then returns a non-empty string). Guarding on figdbg() rather than a debug flag means the macro needs no `with context` and is a true no-op when off. #} {% macro dbg(b64, slot) %}{% set d = figdbg(b64) %}{% if d %}
{{ p.caption or p.id }} — {{ p.stub_reason }}
{{ s.intro }}
{% endif %} {% set split = section_columns.get(s.id) %}No plottable data for this selection.
{% endif %} {% if report.not_applicable %}Not applicable to this {% if report.sections %}selection{% else %}deployment{% endif %}: {{ report.not_applicable | join(", ") }}.
{% endif %} {% endmacro %} {# Cross-navigation pill bar linking the compiled-file inventory pages (profiles.nc / ladcp_profiles.nc / SBE sensors). The page matching current_href is rendered as a non-link active pill. Requires the .inventory-strip / .file-pill CSS (in each page's head_extra). #} {% macro inventory_pills(pills, current_href="") %} {% if pills %} {% endif %} {% endmacro %}