Merge pull request #5 from netzbegruenung/visualize-unresolvable

Visualize missing IP address
This commit is contained in:
Marian Steinbach 2018-04-09 18:30:16 +02:00 committed by GitHub
commit b8d8bfd621
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;