diff --git a/app/web/templates/scan_detail.html b/app/web/templates/scan_detail.html
index 926a9ca..041445e 100644
--- a/app/web/templates/scan_detail.html
+++ b/app/web/templates/scan_detail.html
@@ -331,6 +331,7 @@
Product |
Version |
Status |
+ Screenshot |
@@ -344,10 +345,11 @@
const ports = ip.ports || [];
if (ports.length === 0) {
- portsContainer.innerHTML = '| No ports found |
';
+ portsContainer.innerHTML = '| No ports found |
';
} else {
ports.forEach(port => {
const service = port.services && port.services.length > 0 ? port.services[0] : null;
+ const screenshotPath = service && service.screenshot_path ? service.screenshot_path : null;
const row = document.createElement('tr');
row.classList.add('scan-row'); // Fix white row bug
@@ -359,6 +361,7 @@
${service ? service.product || '-' : '-'} |
${service ? service.version || '-' : '-'} |
${port.expected ? 'Expected' : 'Unexpected'} |
+ ${screenshotPath ? `` : '-'} |
`;
portsContainer.appendChild(row);
});