{# SPDX-License-Identifier: AGPL-3.0-only Copyright 2026 Mouad Lyaazale. Additional terms (author attribution, names): see NOTICE. -#} {# Sparkline of a numeric series (e.g. failed controls per scan). Pure SVG attributes: CSP-safe. #} {% macro spark(values, w=240, h=44, cls="spark") %} {% set n = values|length %} {% if n > 1 %} {% set top = [values|max, 1]|max %} {% else %}