(sessions, ip)
| 16826 | <div class="text-sm text-gray-400">${escapeHtml(scan.ip)}</div> |
| 16827 | </div> |
| 16828 | </div> |
| 16829 | <div class="flex items-center space-x-4"> |
| 16830 | ${scan.download_url ? ` |
| 16831 | <a href="${scan.download_url}" target="_blank" rel="noopener noreferrer" |
| 16832 | class="text-xs px-3 py-1 rounded-full bg-cyan-900/60 text-cyan-200 border border-cyan-500/40 hover:bg-cyan-800/80 transition"> |
| 16833 | ${scan.scan_type === 'lynis' ? 'Download full report' : 'View full report'} |
| 16834 | </a> |
| 16835 | ` : ''} |
| 16836 | ${(scan.log_url && scan.log_url !== scan.download_url) ? ` |
| 16837 | <a href="${scan.log_url}" target="_blank" rel="noopener noreferrer" |
| 16838 | class="text-xs px-3 py-1 rounded-full bg-slate-900/60 text-slate-200 border border-slate-500/40 hover:bg-slate-800/80 transition"> |
| 16839 | View audit log |
| 16840 | </a> |
| 16841 | ` : ''} |
| 16842 | <span class="text-sm text-cyan-400">📡 ${serviceCount} services</span> |
| 16843 | ${scriptCount > 0 ? `<span class="text-sm text-purple-400">📜 ${scriptCount} scripts</span>` : ''} |
| 16844 | <span class="text-xs text-gray-500">${scan.scan_date}</span> |
| 16845 | <svg id="vuln-chevron-${scan.ip.replace(/\./g, '-')}" class="w-5 h-5 text-gray-400 transform transition-transform" fill="none" stroke="currentColor" viewBox="0 0 24 24"> |
| 16846 | <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path> |
| 16847 | </svg> |
| 16848 | </div> |
| 16849 | </div> |
| 16850 | |
| 16851 | <div id="vuln-host-${scan.ip.replace(/\./g, '-')}" class="hidden px-4 py-3 border-t border-slate-700"> |
| 16852 | <div class="space-y-3"> |
| 16853 | ${scan.services |
| 16854 | .sort((a, b) => { |
| 16855 | // Sort so Lynis pentest (system info) appears before ports |
| 16856 | const aIsSystem = a.port === 'system' || a.service === 'lynis pentest'; |
| 16857 | const bIsSystem = b.port === 'system' || b.service === 'lynis pentest'; |
| 16858 | |
| 16859 | if (aIsSystem && !bIsSystem) return -1; // System first |
| 16860 | if (!aIsSystem && bIsSystem) return 1; // System first |
| 16861 | |
| 16862 | // For non-system services, sort by port number |
| 16863 | if (!aIsSystem && !bIsSystem) { |
no test coverage detected