diff --git a/startScan/templates/startScan/detail_scan.html b/startScan/templates/startScan/detail_scan.html index 051584da..b1d520b1 100644 --- a/startScan/templates/startScan/detail_scan.html +++ b/startScan/templates/startScan/detail_scan.html @@ -20,7 +20,30 @@ Scan history {% block main_content %}
-
+
+
+
Scan Status
+ {% if scan_history.scan_status == 0 %} + Failed + {% elif scan_history.scan_status == 1 %} +
Scanning
+
+
+
+ {% elif scan_history.scan_status == 2 %} +
Scanning
+
+
+
+ {% else %} +
Scanning
+
+
+
+ {% endif %} +
+
+
Subdomains Discovered
@@ -151,5 +174,5 @@ Scan history } }); } ); - - {% endblock page_level_script %}.http_status + + {% endblock page_level_script %}.http_status diff --git a/startScan/views.py b/startScan/views.py index baa1bea6..3458f338 100644 --- a/startScan/views.py +++ b/startScan/views.py @@ -24,7 +24,10 @@ def scan_history(request): def detail_scan(request, id): subdomain_details = ScannedHost.objects.filter(scan_history__id=id) subdomain_aqua_details = ScannedSubdomainWithProtocols.objects.filter(host__scan_history__id=id) - context = {'scan_history_active': 'true', 'subdomain':subdomain_details, 'alive': subdomain_aqua_details} + context = {'scan_history_active': 'true', + 'subdomain':subdomain_details, + 'scan_history':scan_history, + 'alive': subdomain_aqua_details} return render(request, 'startScan/detail_scan.html', context) def start_scan_ui(request, id):