Scan Status progress bar added

This commit is contained in:
Yogesh Ojha
2020-05-26 13:15:33 +05:30
parent 06899c04e2
commit fcfa1b6091
2 changed files with 30 additions and 4 deletions
+26 -3
View File
@@ -20,7 +20,30 @@ Scan history
{% block main_content %}
<div class="col-lg-12 layout-px-spacing">
<div class="row layout-top-spacing">
<div class="col-xl-12 col-lg-12 col-sm-12 layout-spacing">
<div class="col-xl-12 col-lg-12 col-sm-12 layout-spacing">
<div class="widget-content widget-content-area br-6">
<h5 class="text-info">Scan Status</h5>
{% if scan_history.scan_status == 0 %}
<span class="shadow-none badge badge-danger">Failed</span>
{% elif scan_history.scan_status == 1 %}
<h6>Scanning</h6>
<div class="progress br-30" style="margin-top:2%">
<div class="progress-bar bg-info" role="progressbar" style="width: 30%" aria-valuenow="30" aria-valuemin="0" aria-valuemax="100"></div>
</div>
{% elif scan_history.scan_status == 2 %}
<h6>Scanning</h6>
<div class="progress br-30" style="margin-top:2%">
<div class="progress-bar bg-info" role="progressbar" style="width: 30%" aria-valuenow="30" aria-valuemin="0" aria-valuemax="100"></div>
</div>
{% else %}
<h6>Scanning</h6>
<div class="progress br-30" style="margin-top:2%">
<div class="progress-bar bg-info" role="progressbar" style="width: 30%" aria-valuenow="30" aria-valuemin="0" aria-valuemax="100"></div>
</div>
{% endif %}
</div>
</div>
<div class="col-xl-12 col-lg-12 col-sm-12">
<div class="widget-content widget-content-area br-6">
<h5 class="text-info">Subdomains Discovered</h5>
<div class="table-responsive mb-4 mt-4">
@@ -151,5 +174,5 @@ Scan history
}
});
} );
</script>
{% endblock page_level_script %}.http_status
</script>
{% endblock page_level_script %}.http_status
+4 -1
View File
@@ -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):