Skip to content

Commit c7ca3e9

Browse files
committed
Refactor encryption algorithm lists in collector templates.
Consolidated key and content encryption algorithm lists into a single "Encryption Algorithms" column across multiple templates. Simplifies the structure and improves maintainability by combining duplicate logic.
1 parent cfd4ca9 commit c7ca3e9

File tree

3 files changed

+6
-36
lines changed

3 files changed

+6
-36
lines changed

src/Bundle/Resources/views/data_collector/tab/jwe/builders.html.twig

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
<thead>
99
<tr>
1010
<th>Service ID</th>
11-
<th>Key Encryption Algorithms</th>
12-
<th>Content Encryption Algorithms</th>
11+
<th>Encryption Algorithms</th>
1312
</tr>
1413
</thead>
1514
<tbody>
@@ -19,16 +18,7 @@
1918
<td>{{ id }}</td>
2019
<td>
2120
<ul>
22-
{% for algorithm in data.key_encryption_algorithms %}
23-
<li class="{% if algorithm in collector.getData().algorithm.messages|keys %}{{ collector.getData().algorithm.messages[algorithm]['severity'] }}{% else %}no-severity{% endif %}">
24-
{{ algorithm }}
25-
</li>
26-
{% endfor %}
27-
</ul>
28-
</td>
29-
<td>
30-
<ul>
31-
{% for algorithm in data.content_encryption_algorithms %}
21+
{% for algorithm in data.encryption_algorithms %}
3222
<li class="{% if algorithm in collector.getData().algorithm.messages|keys %}{{ collector.getData().algorithm.messages[algorithm]['severity'] }}{% else %}no-severity{% endif %}">
3323
{{ algorithm }}
3424
</li>

src/Bundle/Resources/views/data_collector/tab/jwe/decrypters.html.twig

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
<thead>
99
<tr>
1010
<th>Service ID</th>
11-
<th>Key Encryption Algorithms</th>
12-
<th>Content Encryption Algorithms</th>
11+
<th>Encryption Algorithms</th>
1312
</tr>
1413
</thead>
1514
<tbody>
@@ -19,16 +18,7 @@
1918
<td>{{ id }}</td>
2019
<td>
2120
<ul>
22-
{% for algorithm in data.key_encryption_algorithms %}
23-
<li class="{% if algorithm in collector.getData().algorithm.messages|keys %}{{ collector.getData().algorithm.messages[algorithm]['severity'] }}{% else %}no-severity{% endif %}">
24-
{{ algorithm }}
25-
</li>
26-
{% endfor %}
27-
</ul>
28-
</td>
29-
<td>
30-
<ul>
31-
{% for algorithm in data.content_encryption_algorithms %}
21+
{% for algorithm in data.encryption_algorithms %}
3222
<li class="{% if algorithm in collector.getData().algorithm.messages|keys %}{{ collector.getData().algorithm.messages[algorithm]['severity'] }}{% else %}no-severity{% endif %}">
3323
{{ algorithm }}
3424
</li>

src/Bundle/Resources/views/data_collector/tab/jwe/loaders.html.twig

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
<tr>
1010
<th>Service ID</th>
1111
<th>Serializers</th>
12-
<th>Key Encryption Algorithms</th>
13-
<th>Content Encryption Algorithms</th>
12+
<th>Encryption Algorithms</th>
1413
<th>Header Checkers</th>
1514
</tr>
1615
</thead>
@@ -28,16 +27,7 @@
2827
</td>
2928
<td>
3029
<ul>
31-
{% for algorithm in data.key_encryption_algorithms %}
32-
<li class="{% if algorithm in collector.getData().algorithm.messages|keys %}{{ collector.getData().algorithm.messages[algorithm]['severity'] }}{% else %}no-severity{% endif %}">
33-
{{ algorithm }}
34-
</li>
35-
{% endfor %}
36-
</ul>
37-
</td>
38-
<td>
39-
<ul>
40-
{% for algorithm in data.content_encryption_algorithms %}
30+
{% for algorithm in data.encryption_algorithms %}
4131
<li class="{% if algorithm in collector.getData().algorithm.messages|keys %}{{ collector.getData().algorithm.messages[algorithm]['severity'] }}{% else %}no-severity{% endif %}">
4232
{{ algorithm }}
4333
</li>

0 commit comments

Comments
 (0)