From 7141ae63601f65e6b05290a35763bc9b708deb32 Mon Sep 17 00:00:00 2001 From: Shivam Sandbhor Date: Thu, 11 Feb 2021 15:24:36 +0530 Subject: [PATCH] Preserve query in vulnerability search and reduce redundant whitespace Signed-off-by: Shivam Sandbhor --- vulnerabilities/templates/vulnerabilities.html | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/vulnerabilities/templates/vulnerabilities.html b/vulnerabilities/templates/vulnerabilities.html index 85bd5ebde..9f01d21f6 100644 --- a/vulnerabilities/templates/vulnerabilities.html +++ b/vulnerabilities/templates/vulnerabilities.html @@ -11,23 +11,21 @@

{% load widget_tweaks %}
- {{form.vuln_id|add_class:"input"}} + {% with searched_for as query%} + {% render_field form.vuln_id class="input" value=query %} + {% endwith %}
+ {% if searched_for %} +

{{result_size}} results

+ {% endif %} {% if vulnerabilities %} -
-
-

Results of your query "{{searched_for}}"

-

Total {{result_size}} results

-
-
-