From c33c7a57f7fdeaca41be8531222fa336da8f0ee8 Mon Sep 17 00:00:00 2001 From: Joost Agterhoek Date: Wed, 19 Feb 2025 21:16:03 +0100 Subject: [PATCH] simple error display, should make it conditional --- static/styles/style.css | 8 ++++++++ templates/results-overview-new.html | 25 ++++++++++++++++++++----- 2 files changed, 28 insertions(+), 5 deletions(-) diff --git a/static/styles/style.css b/static/styles/style.css index 7fa2b2a..b8b6a44 100644 --- a/static/styles/style.css +++ b/static/styles/style.css @@ -96,6 +96,14 @@ body { border-radius: 3px; } +.errors-container { + display: flex; + justify-content: center; + padding: 10px 10px; + border-radius: 3px; + +} + .results-table { padding: 50px 50px; border-radius: 3px; diff --git a/templates/results-overview-new.html b/templates/results-overview-new.html index 8f09770..71e0e36 100644 --- a/templates/results-overview-new.html +++ b/templates/results-overview-new.html @@ -1,6 +1,13 @@ +
+

+ + You may have mistyped: {{errors|join(',')}}. Try again! + +

+
@@ -30,13 +37,23 @@ @@ -46,9 +63,7 @@ -{% for error in errors %} -{{error}} -{% endfor %} + {% block scripts %}

- VirusTotalVendor marked this host as malicious or suspicious: + VirusTotal +
+ {% if host.vt['score'] > 0 %} + Vendor marked this host as malicious or suspicious: {{host.vt['vendors']|join(', ')}} + {{host.vt['score']}} + {% else %} + No vendors marked this host as malicious or suspicious. + {% endif %} +
+ AbuseIPDB
IP address is: {{host.abuseipdb['IP_address']}}
Is this Tor: {{host.abuseipdb['Tor']}}
Usage: {{host.abuseipdb['usage']}}
- +
+