|
28 | 28 | <div class="table_summary2">
|
29 | 29 | <div></div>
|
30 | 30 | <div>
|
31 |
| - <table style="width: 100%;"> |
| 31 | + <table style="width: 100%"> |
32 | 32 | <tr>
|
33 | 33 | <th colspan="2"
|
34 | 34 | style="text-align: center; background-color: #d7ddde; border: 1px solid black;">
|
|
43 | 43 | </tr>
|
44 | 44 | {% endfor %}
|
45 | 45 | <tr>
|
46 |
| - <td>Metadata matched:</td> |
47 |
| - {% if metadata %} |
| 46 | + <td>Other matched:</td> |
| 47 | + {% if misc_data_1 or misc_data_2 %} |
48 | 48 | <td style="text-align: right">✖</td>
|
49 | 49 | {% endif %}
|
50 |
| - {% if not metadata %} |
| 50 | + {% if not (misc_data_1 or misc_data_2) %} |
51 | 51 | <td style="text-align: right">✔</td>
|
52 | 52 | {% endif %}
|
53 |
| - |
54 | 53 | </tr>
|
55 | 54 | </table>
|
56 | 55 | </div>
|
|
87 | 86 | <tr>
|
88 | 87 | <th colspan="3"
|
89 | 88 | style="text-align: center; background-color: #d7ddde; border: 1px solid black;">
|
90 |
| - Component |
91 |
| - Diff |
| 89 | + Element Diff |
92 | 90 | </th>
|
93 | 91 | </tr>
|
94 |
| - <tr> |
95 |
| - <th style="width: 8%"></th> |
96 |
| - <th style="text-align: center; width: 46%">{{ bom_1 }}</th> |
97 |
| - <th style="text-align: center; width: 46%">{{ bom_2 }}</th> |
98 |
| - </tr> |
99 |
| - {% if diff_status <= 2 %} |
| 92 | + {% if diff_status > 0 %} |
| 93 | + <tr> |
| 94 | + <th style="width: 8%"></th> |
| 95 | + <th style="text-align: center; width: 46%">{{ bom_1 }}</th> |
| 96 | + <th style="text-align: center; width: 46%">{{ bom_2 }}</th> |
| 97 | + </tr> |
| 98 | + {% endif %} |
| 99 | + {% if diff_status == 0 %} |
100 | 100 | <tr>
|
101 | 101 | <td colspan="3" style="text-align: center">No differences found.</td>
|
102 | 102 | </tr>
|
103 | 103 | {% endif %}
|
104 | 104 | {% if diff_apps_1 or diff_apps_2 %}
|
105 | 105 | <tr>
|
106 |
| - <th>applications<br><br>{{ diff_apps_1 | length }} |
107 |
| - vs {{ diff_apps_2 | length }}</th> |
| 106 | + <th>applications<br><br>{{ diff_apps_1|length }} vs {{ diff_apps_2|length }} |
| 107 | + </th> |
108 | 108 | <td>{% for item in diff_apps_1 %}
|
109 | 109 | <details>
|
110 |
| - <summary>{{ item['name'] }}@{{ item['version'] }}</summary> |
| 110 | + <summary>{{ item["name"] }}@{{ item["version"] }}</summary> |
111 | 111 | <ul>
|
112 | 112 | {% for key, value in item|items %}
|
113 | 113 | {% if value != "" and key not in ["properties","evidence","hashes","licenses","externalReferences"] %}
|
|
154 | 154 | {% endfor %}
|
155 | 155 | </ul>
|
156 | 156 | </details>
|
157 |
| - {% endfor %}</td> |
| 157 | + {% endfor %} |
| 158 | + </td> |
158 | 159 | <td>{% for item in diff_apps_2 %}
|
159 | 160 | <details>
|
160 | 161 | <summary>{{ item['name'] }}@{{ item['version'] }}</summary>
|
|
693 | 694 | <summary>{{ key }}:</summary>
|
694 | 695 | <ul>
|
695 | 696 | {% for affect in value %}
|
696 |
| - <details> |
697 |
| - <summary>{{ affect['ref'] }}:</summary> |
698 |
| - <ul> |
699 |
| - {% for a in affect['versions'] %} |
700 |
| - <li>{{ a }}</li> |
701 |
| - {% endfor %} |
702 |
| - </ul> |
703 |
| - </details> |
| 697 | + {% for a, b in affect|items %} |
| 698 | + <li>{{ a }}: {{ b }}</li> |
| 699 | + {% endfor %} |
704 | 700 | {% endfor %}
|
705 | 701 | </ul>
|
706 | 702 | </details>
|
|
813 | 809 | <summary>{{ key }}:</summary>
|
814 | 810 | <ul>
|
815 | 811 | {% for affect in value %}
|
816 |
| - <details> |
817 |
| - <summary>{{ affect['ref'] }}:</summary> |
818 |
| - <ul> |
819 |
| - {% for a in affect['versions'] %} |
820 |
| - <li>{{ a }}</li> |
821 |
| - {% endfor %} |
822 |
| - </ul> |
823 |
| - </details> |
| 812 | + {% for a, b in affect|items %} |
| 813 | + <li>{{ a }}: {{ b }}</li> |
| 814 | + {% endfor %} |
824 | 815 | {% endfor %}
|
825 | 816 | </ul>
|
826 | 817 | </details>
|
|
870 | 861 | {% endfor %}</td>
|
871 | 862 | </tr>
|
872 | 863 | {% endif %}
|
| 864 | + {% if misc_data_1 or misc_data_2 %} |
| 865 | + <tr> |
| 866 | + <th>other</th> |
| 867 | + {% if misc_data_1 %} |
| 868 | + <td>{{ misc_data_1 }}</td> |
| 869 | + {% endif %} |
| 870 | + {% if not misc_data_1 %} |
| 871 | + <td></td> |
| 872 | + {% endif %} |
| 873 | + {% if misc_data_1 %} |
| 874 | + <td>{{ misc_data_2 }}</td> |
| 875 | + {% endif %} |
| 876 | + {% if not misc_data_2 %} |
| 877 | + <td></td> |
| 878 | + {% endif %} |
| 879 | + </tr> |
| 880 | + {% endif %} |
873 | 881 | </table>
|
874 | 882 | </div>
|
875 | 883 | <div></div>
|
|
883 | 891 | <th colspan="2"
|
884 | 892 | style="text-align: center; background-color: #d7ddde; border: 1px solid black;">
|
885 | 893 | Common
|
886 |
| - Components |
| 894 | + Elements |
887 | 895 | </th>
|
888 | 896 | </tr>
|
889 |
| - {% if not (common_apps or common_frameworks or common_lib or common_other or common_services or common_deps or common_vdrs) %} |
| 897 | + {% if not (common_apps or common_frameworks or common_lib or common_other or common_services or common_deps or common_vdrs or common_misc_data) %} |
890 | 898 | <tr>
|
891 | 899 | <td colspan="2" style="text-align: center">No commonalities.</td>
|
892 | 900 | </tr>
|
|
1068 | 1076 | {% endfor %}</td>
|
1069 | 1077 | </tr>
|
1070 | 1078 | {% endif %}
|
1071 |
| - |
1072 | 1079 | {% if common_other %}
|
1073 | 1080 | <tr>
|
1074 | 1081 | <th>other types</th>
|
1075 |
| - <td>{% for item in common_other %} |
| 1082 | + <td style="width: 41%">{% for item in common_other %} |
1076 | 1083 | <details>
|
1077 | 1084 | <summary>{{ item['name'] }}@{{ item['version'] }}</summary>
|
1078 | 1085 | <ul>
|
|
1173 | 1180 | {% if common_vdrs %}
|
1174 | 1181 | <tr>
|
1175 | 1182 | <th style="width: 8%">vulnerabilities</th>
|
1176 |
| - <td>{% for item in common_vdrs %} |
| 1183 | + <td style="width: 41%">{% for item in common_vdrs %} |
1177 | 1184 | <details>
|
1178 | 1185 | <summary>{{ item['bom-ref'] }}</summary>
|
1179 | 1186 | <ul>
|
|
1238 | 1245 | <summary>{{ key }}:</summary>
|
1239 | 1246 | <ul>
|
1240 | 1247 | {% for affect in value %}
|
1241 |
| - <details> |
1242 |
| - <summary>{{ affect['ref'] }}:</summary> |
1243 |
| - <ul> |
1244 |
| - {% for a in affect['versions'] %} |
1245 |
| - <li>{{ a }}</li> |
1246 |
| - {% endfor %} |
1247 |
| - </ul> |
1248 |
| - </details> |
| 1248 | + {% for a, b in affect|items %} |
| 1249 | + <li>{{ a }}: {{ b }}</li> |
| 1250 | + {% endfor %} |
1249 | 1251 | {% endfor %}
|
1250 | 1252 | </ul>
|
1251 | 1253 | </details>
|
|
1295 | 1297 | {% endfor %}</td>
|
1296 | 1298 | </tr>
|
1297 | 1299 | {% endif %}
|
| 1300 | + {% if common_misc_data %} |
| 1301 | + <tr> |
| 1302 | + <th style="width: 8%">other</th> |
| 1303 | + <td style="width: 41%">{{ common_misc_data }}</td> |
| 1304 | + </tr> |
| 1305 | + {% endif %} |
1298 | 1306 | </table>
|
1299 | 1307 | </div>
|
1300 | 1308 | <div></div>
|
|
0 commit comments