diff --git a/vulnerabilities/templates/advisory_detail.html b/vulnerabilities/templates/advisory_detail.html index fea5afde4..1973195f1 100644 --- a/vulnerabilities/templates/advisory_detail.html +++ b/vulnerabilities/templates/advisory_detail.html @@ -4,11 +4,35 @@ {% load static %} {% load show_cvss %} {% load url_filters %} +{% load utils %} {% block title %} VulnerableCode Advisory Details - {{ advisory.advisory_id }} {% endblock %} +{% block extrahead %} + +{% endblock %} + {% block content %} {% if advisory %} @@ -124,7 +148,7 @@ Summary - {{ advisory.summary }} + {{ advisory.summary|normalize_links|urlize }} {% if severity_score_range %} diff --git a/vulnerabilities/templates/advisory_todos.html b/vulnerabilities/templates/advisory_todos.html index f5ce62c2a..23c1edad5 100644 --- a/vulnerabilities/templates/advisory_todos.html +++ b/vulnerabilities/templates/advisory_todos.html @@ -59,7 +59,7 @@

Advisory To-Dos

{{ form.search }} {% if form.search.value %} - @@ -71,7 +71,7 @@

Advisory To-Dos

{{ form.avid }} {% if form.avid.value %} -
@@ -220,10 +220,12 @@

Advisory To-Dos

searchContainer.style.display = 'none'; lookupContainer.style.display = ''; searchContainer.querySelector('input').value = ''; + lookupContainer.querySelector('input').value = avid; } else { searchContainer.style.display = ''; lookupContainer.style.display = 'none'; lookupContainer.querySelector('input').value = ''; + searchContainer.querySelector('input').value = search; } } diff --git a/vulnerabilities/templates/pipeline_dashboard.html b/vulnerabilities/templates/pipeline_dashboard.html index 04068b0a9..0024c6d7f 100644 --- a/vulnerabilities/templates/pipeline_dashboard.html +++ b/vulnerabilities/templates/pipeline_dashboard.html @@ -52,8 +52,16 @@

Pipeline Dashboard

-
+
diff --git a/vulnerabilities/views.py b/vulnerabilities/views.py index b5ba74214..d504bddc7 100644 --- a/vulnerabilities/views.py +++ b/vulnerabilities/views.py @@ -1002,6 +1002,11 @@ class PipelineScheduleListView(VulnerableCodeListView, FormMixin): paginate_by = 20 form_class = PipelineSchedulePackageForm + def get_form_kwargs(self): + kwargs = super().get_form_kwargs() + kwargs["data"] = self.request.GET + return kwargs + def get_queryset(self): form = self.form_class(self.request.GET) if form.is_valid():