diff --git a/custom_json_diff/bom_diff_template.j2 b/custom_json_diff/bom_diff_template.j2 index a7d8587..6cba002 100644 --- a/custom_json_diff/bom_diff_template.j2 +++ b/custom_json_diff/bom_diff_template.j2 @@ -32,22 +32,13 @@ Summary - {% if not comp_only %} - {% for item in stats %} - - {{ item[0] }} - {{ item[1] }} - - - {% endfor %} - {% endif %} - {% if comp_only %} + {% for item in stats %} - {{ stats[0][0] }} - {{ stats[0][1] }} + {{ item[0] }} + {{ item[1] }} - {% endif %} + {% endfor %} @@ -160,10 +151,10 @@ {% endfor %} {% endif %} - {% if diff_other_comp_1 or diff_other_comp_2 %} + {% if diff_other_1 or diff_other_2 %} other types - {% for item in diff_other_comp_1 %} + {% for item in diff_other_1 %}
{{ item['name'] }}@{{ item['version'] }}
{% endfor %} - {% for item in diff_other_comp_2 %} + {% for item in diff_other_2 %}
{{ item['name'] }}@{{ item['version'] }}