Skip to content

Commit

Permalink
Refactor encryption algorithm lists in collector templates.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Spomky committed Feb 9, 2025
1 parent cfd4ca9 commit c7ca3e9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
<thead>
<tr>
<th>Service ID</th>
<th>Key Encryption Algorithms</th>
<th>Content Encryption Algorithms</th>
<th>Encryption Algorithms</th>
</tr>
</thead>
<tbody>
Expand All @@ -19,16 +18,7 @@
<td>{{ id }}</td>
<td>
<ul>
{% for algorithm in data.key_encryption_algorithms %}
<li class="{% if algorithm in collector.getData().algorithm.messages|keys %}{{ collector.getData().algorithm.messages[algorithm]['severity'] }}{% else %}no-severity{% endif %}">
{{ algorithm }}
</li>
{% endfor %}
</ul>
</td>
<td>
<ul>
{% for algorithm in data.content_encryption_algorithms %}
{% for algorithm in data.encryption_algorithms %}
<li class="{% if algorithm in collector.getData().algorithm.messages|keys %}{{ collector.getData().algorithm.messages[algorithm]['severity'] }}{% else %}no-severity{% endif %}">
{{ algorithm }}
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
<thead>
<tr>
<th>Service ID</th>
<th>Key Encryption Algorithms</th>
<th>Content Encryption Algorithms</th>
<th>Encryption Algorithms</th>
</tr>
</thead>
<tbody>
Expand All @@ -19,16 +18,7 @@
<td>{{ id }}</td>
<td>
<ul>
{% for algorithm in data.key_encryption_algorithms %}
<li class="{% if algorithm in collector.getData().algorithm.messages|keys %}{{ collector.getData().algorithm.messages[algorithm]['severity'] }}{% else %}no-severity{% endif %}">
{{ algorithm }}
</li>
{% endfor %}
</ul>
</td>
<td>
<ul>
{% for algorithm in data.content_encryption_algorithms %}
{% for algorithm in data.encryption_algorithms %}
<li class="{% if algorithm in collector.getData().algorithm.messages|keys %}{{ collector.getData().algorithm.messages[algorithm]['severity'] }}{% else %}no-severity{% endif %}">
{{ algorithm }}
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
<tr>
<th>Service ID</th>
<th>Serializers</th>
<th>Key Encryption Algorithms</th>
<th>Content Encryption Algorithms</th>
<th>Encryption Algorithms</th>
<th>Header Checkers</th>
</tr>
</thead>
Expand All @@ -28,16 +27,7 @@
</td>
<td>
<ul>
{% for algorithm in data.key_encryption_algorithms %}
<li class="{% if algorithm in collector.getData().algorithm.messages|keys %}{{ collector.getData().algorithm.messages[algorithm]['severity'] }}{% else %}no-severity{% endif %}">
{{ algorithm }}
</li>
{% endfor %}
</ul>
</td>
<td>
<ul>
{% for algorithm in data.content_encryption_algorithms %}
{% for algorithm in data.encryption_algorithms %}
<li class="{% if algorithm in collector.getData().algorithm.messages|keys %}{{ collector.getData().algorithm.messages[algorithm]['severity'] }}{% else %}no-severity{% endif %}">
{{ algorithm }}
</li>
Expand Down

0 comments on commit c7ca3e9

Please sign in to comment.