From 794597296ce02115fcfc550281b0e236af14bfdd Mon Sep 17 00:00:00 2001 From: tdruez Date: Wed, 4 Sep 2024 08:29:47 +0400 Subject: [PATCH] Set the proper vulnerablecode_url in the tab context #108 Signed-off-by: tdruez --- .../templates/product_portfolio/tabs/tab_vulnerabilities.html | 2 +- product_portfolio/views.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/product_portfolio/templates/product_portfolio/tabs/tab_vulnerabilities.html b/product_portfolio/templates/product_portfolio/tabs/tab_vulnerabilities.html index 27e06406..f189c4d3 100644 --- a/product_portfolio/templates/product_portfolio/tabs/tab_vulnerabilities.html +++ b/product_portfolio/templates/product_portfolio/tabs/tab_vulnerabilities.html @@ -7,7 +7,7 @@ - + {{ vulnerability.vulnerability_id }} diff --git a/product_portfolio/views.py b/product_portfolio/views.py index 679a277f..c07bfb41 100644 --- a/product_portfolio/views.py +++ b/product_portfolio/views.py @@ -1136,6 +1136,7 @@ def get_context_data(self, **kwargs): "page_obj": page_obj, "total_count": total_count, "search_query": self.request.GET.get("vulnerabilities-q", ""), + "vulnerablecode_url": VulnerableCode(product.dataspace).service_url, } )