mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-10-01 06:04:54 +02:00
Scan Status progress bar added
This commit is contained in:
@@ -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
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user