Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
Signed-off-by: Caroline Russell <[email protected]>
  • Loading branch information
cerrussell committed Jun 4, 2024
1 parent 78ab3ff commit 1a8a06b
Show file tree
Hide file tree
Showing 8 changed files with 365 additions and 217 deletions.
216 changes: 129 additions & 87 deletions custom_json_diff/bom_diff_template.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,34 @@
display: grid;
grid-template-columns: 5% 90% 5%;
}
.table_summary2 {
display: grid;
grid-template-columns: 75% 20% 5%;
}
</style>
</head>
<body>
<div class="table_summary2">
<div></div>
<div>
<table style="width: 100%;">
<tr>
<th colspan="2" style="text-align: center; background-color: #d7ddde">Overall
Summary
</th>
</tr>
{% for item in stats %}
<tr>
<td>{{ item[0] }}</td>
<td style="text-align: right">{{ item[1] }}</td>

</tr>
{% endfor %}

</table>
</div>
</div>
<div><h1 style="text-align:center;">BOM Diff Summary</h1></div>
<div class="table_summary">
<div></div>
Expand All @@ -43,6 +68,8 @@
<li>group: {{ item['group'] }}</li>
<li>purl: {{ item['purl'] }}</li>
<li>bom-ref: {{ item['bom-ref'] }}</li>
<li>author: {{ item['author'] }}</li>
<li>publisher: {{ item['publisher'] }}</li>
</ul>
</details>
{% endfor %}</td>
Expand All @@ -55,6 +82,8 @@
<li>group: {{ item['group'] }}</li>
<li>purl: {{ item['purl'] }}</li>
<li>bom-ref: {{ item['bom-ref'] }}</li>
<li>author: {{ item['author'] }}</li>
<li>publisher: {{ item['publisher'] }}</li>
</ul>
</details>
{% endfor %}</td>
Expand All @@ -70,6 +99,8 @@
<li>group: {{ item['group'] }}</li>
<li>purl: {{ item['purl'] }}</li>
<li>bom-ref: {{ item['bom-ref'] }}</li>
<li>author: {{ item['author'] }}</li>
<li>publisher: {{ item['publisher'] }}</li>
</ul>
</details>
{% endfor %}</td>
Expand All @@ -82,69 +113,74 @@
<li>group: {{ item['group'] }}</li>
<li>purl: {{ item['purl'] }}</li>
<li>bom-ref: {{ item['bom-ref'] }}</li>
<li>author: {{ item['author'] }}</li>
<li>publisher: {{ item['publisher'] }}</li>
</ul>
</details>
{% endfor %}</td>
</tr>
<tr>
<th>services</th>
<td>{% for item in diff_services_1 %}
<details>
<summary>{{ item['name'] }}@{{ item['version'] }}</summary>
<ul>
<li>name: {{ item['name'] }}</li>
<li>version: {{ item['version'] }}</li>
<li>group: {{ item['group'] }}</li>
<li>bom-ref: {{ item['bom-ref'] }}</li>
</ul>
</details>
{% endfor %}</td>
<td>{% for item in diff_services_2 %}
<details>
<summary>{{ item['name'] }}@{{ item['version'] }}</summary>
<ul>
<li>name: {{ item['name'] }}</li>
<li>version: {{ item['version'] }}</li>
<li>group: {{ item['group'] }}</li>
<li>bom-ref: {{ item['bom-ref'] }}</li>
</ul>
</details>
{% endfor %}</td>
</tr>
<tr>
<th>dependencies</th>
<td>{% for item in diff_deps_1 %}
<details>
<summary>{{ item['short_ref'] }}</summary>
<ul>
<li>ref: {{ item['ref'] }}</li>
<li>dependencies:
<ul>
{% for dep in item['dependsOn'] %}
<li>{{ dep }}</li>
{% endfor %}
</ul>
</li>
</ul>
{% if not comp_only %}
<tr>
<th>services</th>
<td>{% for item in diff_services_1 %}
<details>
<summary>{{ item['name'] }}@{{ item['version'] }}</summary>
<ul>
<li>name: {{ item['name'] }}</li>
<li>version: {{ item['version'] }}</li>
<li>group: {{ item['group'] }}</li>
<li>bom-ref: {{ item['bom-ref'] }}</li>
</ul>
</details>
{% endfor %}</td>
<td>{% for item in diff_services_2 %}
<details>
<summary>{{ item['name'] }}@{{ item['version'] }}</summary>
<ul>
<li>name: {{ item['name'] }}</li>
<li>version: {{ item['version'] }}</li>
<li>group: {{ item['group'] }}</li>
<li>bom-ref: {{ item['bom-ref'] }}</li>
</ul>
</details>
{% endfor %}</td>
</tr>
<tr>
<th>dependencies</th>
<td>{% for item in diff_deps_1 %}
<details>
<summary>{{ item['short_ref'] }}</summary>
<ul>
<li>ref: {{ item['ref'] }}</li>
<li>dependencies:
<ul>
{% for dep in item['dependsOn'] %}
<li>{{ dep }}</li>
{% endfor %}
</ul>
</li>
</ul>

</details>
{% endfor %}</td>
<td>{% for item in diff_deps_2 %}
<details>
<summary>{{ item['short_ref'] }}</summary>
<ul>
<li>ref: {{ item['ref'] }}</li>
<li>dependencies:
<ul>
{% for dep in item['dependsOn'] %}
<li>{{ dep }}</li>
{% endfor %}
</ul></li>
</ul>
</details>
{% endfor %}</td>
<td>{% for item in diff_deps_2 %}
<details>
<summary>{{ item['short_ref'] }}</summary>
<ul>
<li>ref: {{ item['ref'] }}</li>
<li>dependencies:
<ul>
{% for dep in item['dependsOn'] %}
<li>{{ dep }}</li>
{% endfor %}
</ul>
</li>
</ul>

</details>
{% endfor %}</td>
</tr>
</details>
{% endfor %}</td>
</tr>
{% endif %}
</table>
</div>
<div></div>
Expand All @@ -170,6 +206,8 @@
<li>group: {{ item['group'] }}</li>
<li>purl: {{ item['purl'] }}</li>
<li>bom-ref: {{ item['bom-ref'] }}</li>
<li>author: {{ item['author'] }}</li>
<li>publisher: {{ item['publisher'] }}</li>
</ul>
</details>
{% endfor %}</td>
Expand All @@ -183,41 +221,45 @@
<li>group: {{ item['group'] }}</li>
<li>purl: {{ item['purl'] }}</li>
<li>bom-ref: {{ item['bom-ref'] }}</li>
<li>author: {{ item['author'] }}</li>
<li>publisher: {{ item['publisher'] }}</li>
</ul>
</details>
{% endfor %}</td>
</tr>
<tr>
<th style="width: 8%">services</th>
<td style="width: 41%">{% for item in common_lib %}
<details>
<summary>{{ item['name'] }}@{{ item['version'] }}</summary>
<ul>
<li>name: {{ item['name'] }}</li>
<li>version: {{ item['version'] }}</li>
<li>group: {{ item['group'] }}</li>
<li>bom-ref: {{ item['bom-ref'] }}</li>
</ul>
</details>
{% endfor %}</td>
<th style="width: 8%">dependencies</th>
<td style="width: 41%"> {% for item in common_deps %}
<details>
<summary>{{ item['short_ref'] }}</summary>
<ul>
<li>ref: {{ item['ref'] }}</li>
<li>dependencies:
<ul>
{% for dep in item['dependsOn'] %}
<li>{{ dep }}</li>
{% endfor %}
</ul>
</li>
</ul>
{% if not comp_only %}
<tr>
<th style="width: 8%">services</th>
<td style="width: 41%">{% for item in common_services %}
<details>
<summary>{{ item['name'] }}@{{ item['version'] }}</summary>
<ul>
<li>name: {{ item['name'] }}</li>
<li>version: {{ item['version'] }}</li>
<li>group: {{ item['group'] }}</li>
<li>bom-ref: {{ item['bom-ref'] }}</li>
</ul>
</details>
{% endfor %}</td>
<th style="width: 8%">dependencies</th>
<td style="width: 41%"> {% for item in common_deps %}
<details>
<summary>{{ item['short_ref'] }}</summary>
<ul>
<li>ref: {{ item['ref'] }}</li>
<li>dependencies:
<ul>
{% for dep in item['dependsOn'] %}
<li>{{ dep }}</li>
{% endfor %}
</ul>
</li>
</ul>

</details>
{% endfor %}</td>
</tr>
</details>
{% endfor %}</td>
</tr>
{% endif %}
</table>
</div>
<div></div>
Expand Down
Loading

0 comments on commit 1a8a06b

Please sign in to comment.