Skip to content

Commit

Permalink
Show affected package on security advisory page
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Nov 1, 2023
1 parent 5754146 commit 9e34e90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions templates/package/_security_advisory_list.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
{% endif %}
{% endfor %}
</p>
{% if withPackage|default(false) %}<p>Affected package: {{ advisory.packageName }}</p>{% endif %}
<p>Affected version: {{ advisory.affectedVersions }}</p>
</div>
<div class="col-sm-4 col-lg-3">
Expand Down
2 changes: 1 addition & 1 deletion templates/package/security_advisory.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
</div>
</div>

{% include 'package/_security_advisory_list.html.twig' %}
{% include 'package/_security_advisory_list.html.twig' with {withPackage: true} %}
{% endblock %}

0 comments on commit 9e34e90

Please sign in to comment.