Skip to content

Commit 7d3f499

Browse files
committed
Show summary for each region in group details
Signed-off-by: Matthias Büchse <matthias.buechse@alasca.cloud>
1 parent 817d960 commit 7d3f499

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

compliance-monitor/templates/details.md.j2

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{% if results | length > 1 %}
22
Jump to
33

4-
{% for subject in results -%}
5-
- [{{subject}}](#{{subject}})
4+
{# assume that there is just one scope for each subject (the same one) -#}
5+
{% set _sr = results.values() | first %}{% set scopeuuid = _sr.keys() | first -%}
6+
{% for subject, subject_result in results.items() -%}
7+
- [{{subject}}](#{{subject}}) {{ subject_result[scopeuuid] | summary }}
68
{% endfor %}
79
{% endif %}
810
{% for subject, subject_result in results.items() -%}

0 commit comments

Comments
 (0)