Improve naming different metrics.
This commit is contained in:
1 parent
9247608a9f
commit
f775e1f1ed
2 files changed
+25
-17
No files matched your search
@@ -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 %}
|
||||
|
||||
|
||||
Reference in new issue
Block a user