(interfaceName)
| 8777 | if (d.note) html += `<p class="text-xs text-gray-500 mb-2">${escapeHtml(d.note)}</p>`; |
| 8778 | if (d.enrich_note) html += `<p class="text-xs text-gray-500 mb-2">${escapeHtml(d.enrich_note)}</p>`; |
| 8779 | const asnNames = d.asn_names || {}; |
| 8780 | if (d.peers && d.peers.length) { |
| 8781 | const tp = d.trusted_peers || []; |
| 8782 | html += `<p class="text-xs mb-1 text-gray-400">Peers: ` + |
| 8783 | d.peers.map(a => { |
| 8784 | const nm = asnNames[a] ? ` <span class="text-gray-500">(${escapeHtml(asnNames[a])})</span>` : ''; |
| 8785 | return `<span class="font-mono ${tp.length && tp.indexOf(a) < 0 ? 'text-amber-300' : 'text-gray-200'}">AS${a}</span>${nm}`; |
| 8786 | }).join(', ') + |
no test coverage detected