From bf4758f0561230a9168fb0804242965ec889afeb Mon Sep 17 00:00:00 2001 From: tdruez Date: Fri, 30 Aug 2024 19:19:49 +0400 Subject: [PATCH] Display the tab as disabled when no vulnerabilities found #95 Signed-off-by: tdruez --- CHANGELOG.rst | 3 +++ dje/templates/object_details_base.html | 4 ++-- product_portfolio/tests/test_views.py | 25 ++++++++++++++++++++++++- product_portfolio/views.py | 10 ++++++++-- 4 files changed, 37 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 08df610c..9af9b172 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -104,6 +104,9 @@ Release notes "Add Package". https://github.com/aboutcode-org/dejacode/issues/163 +- Add a Vulnerabilities tab in the Product details view. + https://github.com/aboutcode-org/dejacode/issues/95 + ### Version 5.1.0 - Upgrade Python version to 3.12 and Django to 5.0.x diff --git a/dje/templates/object_details_base.html b/dje/templates/object_details_base.html index 750db7ad..69b42e68 100644 --- a/dje/templates/object_details_base.html +++ b/dje/templates/object_details_base.html @@ -77,8 +77,8 @@