Skip to content

Commit 2df2f7e

Browse files
committed
display the request status and link in the recommandation cell
Signed-off-by: tdruez <tdruez@aboutcode.org>
1 parent dff860f commit 2df2f7e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

product_portfolio/templates/product_portfolio/tabs/tab_packages_vulnerabilities.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,14 @@
8686
<div class="small text-body-secondary mt-1 ps-1">
8787
<i class="fas fa-layer-group fa-xs me-1"></i>{{ record.ruleset.name }}
8888
</div>
89+
{% if record.request %}
90+
<div class="small mt-1 ps-1">
91+
<a href="{{ record.request.get_absolute_url }}" target="_blank" class="text-body-secondary">
92+
{% include 'workflow/includes/request_status_icon.html' with req=record.request %}
93+
<span class="fw-semibold">Request #{{ record.request_id }}</span>
94+
</a>
95+
</div>
96+
{% endif %}
8997
<div class="small text-body-tertiary mt-1 ps-1">
9098
{% trans "Since:" %} {{ record.detected_date|date:"M j, Y" }}
9199
</div>

0 commit comments

Comments
 (0)