Skip to content

Commit 9e34e90

Browse files
committed
Show affected package on security advisory page
1 parent 5754146 commit 9e34e90

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

templates/package/_security_advisory_list.html.twig

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
{% endif %}
2323
{% endfor %}
2424
</p>
25+
{% if withPackage|default(false) %}<p>Affected package: {{ advisory.packageName }}</p>{% endif %}
2526
<p>Affected version: {{ advisory.affectedVersions }}</p>
2627
</div>
2728
<div class="col-sm-4 col-lg-3">

templates/package/security_advisory.html.twig

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
</div>
1818
</div>
1919

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

0 commit comments

Comments
 (0)