diff --git a/startScan/templates/startScan/detail_scan.html b/startScan/templates/startScan/detail_scan.html
index 2acf3b8f..a8b623f0 100644
--- a/startScan/templates/startScan/detail_scan.html
+++ b/startScan/templates/startScan/detail_scan.html
@@ -180,6 +180,7 @@ All Subdomains
+ | Status |
Subdomain |
IP Address |
Status |
@@ -239,8 +240,9 @@ $(document).ready(function() {
"pageLength": 20,
'serverSide': true,
"ajax": '/start_scan/api/scanHistory/?scan_id={{scan_history_id}}&format=datatables',
- "order": [[ 4, "desc" ]],
+ "order": [[ 5, "desc" ]],
"columns": [
+ {'data': 'id'},
{'data': 'subdomain'},
{'data': 'ip_address'},
{'data': 'http_status'},
@@ -256,12 +258,17 @@ $(document).ready(function() {
],
"columnDefs": [
{
- "targets": [ 9, 10],
+ targets:0, width:"30px", className:"", orderable:!1, render:function(e, a, t, n) {
+ return''
+ }
+ },
+ {
+ "targets": [ 10, 11],
"visible": false,
"searchable": false,
},
{
- "targets": [ 11 ],
+ "targets": [ 12 ],
"visible": false,
"searchable": true,
},
@@ -275,7 +282,7 @@ $(document).ready(function() {
}
return ``+data+``;
},
- "targets": 0
+ "targets": 1
},
{
"render": function ( data, type, row ) {
@@ -291,7 +298,7 @@ $(document).ready(function() {
return '';
}
},
- "targets": 1,
+ "targets": 2,
},
{
"render": function ( data, type, row ) {
@@ -309,7 +316,7 @@ $(document).ready(function() {
}
return ``+data+``;
},
- "targets": 2,
+ "targets": 3,
},
{
"render": function ( data, type, row ) {
@@ -317,7 +324,7 @@ $(document).ready(function() {
// green for http status 2XX, orange for 3XX and warning for everything else
return span_values(data, "info");
},
- "targets": 3,
+ "targets": 4,
},
{
"render": function ( data, type, row ) {
@@ -326,7 +333,7 @@ $(document).ready(function() {
}
return "";
},
- "targets": 5,
+ "targets": 6,
},
{
"render": function ( data, type, row ) {
@@ -335,7 +342,7 @@ $(document).ready(function() {
}
return "";
},
- "targets": 6,
+ "targets": 7,
},
{
"render": function ( data, type, row ) {
@@ -345,7 +352,7 @@ $(document).ready(function() {
}
return "";
},
- "targets": 7,
+ "targets": 8,
},
{
"render": function ( data, type, row ) {
@@ -374,7 +381,7 @@ $(document).ready(function() {
}
return '';
},
- "targets": 8,
+ "targets": 9,
},
],
drawCallback: function () {
@@ -527,10 +534,10 @@ var chart = new ApexCharts(
chart.render();
//to remove the image element if there is no screenshot captured
- function removeImageElement(element)
- {
- element.parentElement.remove();
- }
+function removeImageElement(element)
+{
+ element.parentElement.remove();
+}
{% endblock page_level_script %}
diff --git a/startScan/templates/startScan/detail_vuln_scan.html b/startScan/templates/startScan/detail_vuln_scan.html
index dc55ff4d..9226b098 100644
--- a/startScan/templates/startScan/detail_vuln_scan.html
+++ b/startScan/templates/startScan/detail_vuln_scan.html
@@ -8,6 +8,7 @@ Scan history - Vulnerabilities
{% block custom_js_css_link %}
+
@@ -37,7 +38,7 @@ All Vulnerabilities
- | Status |
+ Status |
Title |
Severity |
Vulnerable URL |
@@ -116,10 +117,16 @@ $(document).ready(function() {
{
"render": function ( data, type, row ) {
if(row['open_status']){
- return ``;
+ return ``;
}
else{
- return ``;
+ return ``;
}
},
"targets": 0,
@@ -182,7 +189,6 @@ $(document).ready(function() {
{
"render": function ( data, type, row ) {
if (data){
-
return ''
}
else{
@@ -207,12 +213,11 @@ $(document).ready(function() {
function vuln_status_change(checkbox, id)
{
if (checkbox.checked) {
- document.getElementById
- checkbox.parentNode.parentNode.className = "table-secondary text-strike";
+ checkbox.parentNode.parentNode.parentNode.className = "table-secondary text-strike";
}
else {
- checkbox.parentNode.parentNode.classList.remove("table-secondary");
- checkbox.parentNode.parentNode.classList.remove("text-strike");
+ checkbox.parentNode.parentNode.parentNode.classList.remove("table-secondary");
+ checkbox.parentNode.parentNode.parentNode.classList.remove("text-strike");
}
change_vuln_status(id);
}