Visualize missing IP address

This commit is contained in:
Marian Steinbach 2018-04-09 18:29:55 +02:00
parent b0dbdab5af
commit 8afc7f9c36
3 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -17,8 +17,8 @@ $(function(){
row.append('<td><a href="' + item.input_url + '">' + punycode.toUnicode(item.input_url) + '</a></td>');
// IPs
var ips = _.uniq(_.flatten(_.map(item.hostnames, 'ip_addresses')));
row.append('<td>' + _.join(ips, ', ') + '</a></td>');
var ips = _.join(_.uniq(_.flatten(_.map(item.hostnames, 'ip_addresses'))), ', ');
row.append('<td class="'+ (ips === '' ? 'bad' : 'good') +' text-center">' + (ips === '' ? '❌ Keine' : ips) + '</td>');
// hostnames
var twoHostnames = false;