Improve naming different metrics.

This commit is contained in:
Florian Frank committed 2026-09-21 22:09:01 +02:00
1 parent 9247608a9f
commit f775e1f1ed
2 files changed
+25 -17

No files matched your search

+3 -2
View File
@@ -32,7 +32,7 @@
</table>
{% endmacro %}
{% macro card(title, rows) %}
{% macro card(title, rows, note="") %}
{# Wrapped, because break-inside on the table does not hold its caption: the title would stay on
one page while the rows it titles moved to the next. #}
<div class="block">
@@ -45,6 +45,7 @@
</tr>
{% endfor %}
</table>
{% if note %}<p class="note card-note">{{ note }}</p>{% endif %}
</div>
{% endmacro %}
@@ -158,7 +159,7 @@
{% endfor %}
{% for metric in summary.metrics or [] %}
{{ card(metric.title, metric.rows) }}
{{ card(metric.title, metric.rows, metric.note) }}
{% endfor %}
{% endif %}