Skip to content

Commit

Permalink
Merge pull request #14561 from canonical/cves-fix-single-package
Browse files Browse the repository at this point in the history
Fix summarised status copy for CVEs that affect a single package
  • Loading branch information
juanruitina authored Dec 12, 2024
2 parents 5a636e1 + 8231079 commit 01a1856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/security/cves/_cve-card.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ <h2 class="p-heading--5">
<p>{{ cve.description|truncate(235) }}</p>
</div>
<div class="cve-summary col-3 col-medium-2">
<p class="p-text--small-caps u-text--muted u-no-margin--top">{{ cve.packages | length }} affected packages</p>
<p class="p-text--small-caps u-text--muted u-no-margin--top">{{ cve.packages | length }} affected package{% if cve.packages | length > 1 %}s{% endif %}</p>
<p class="u-text--muted">
{% for package in cve.packages %}
{% if cve.packages | length > 6 %}
Expand Down

0 comments on commit 01a1856

Please sign in to comment.