From 131d1040ae9c24eec4e7235fda6e439978d1fd13 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Mon, 13 May 2013 20:38:08 +0200 Subject: try to hide vserver ips --- index.html | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index b965dac..c508168 100644 --- a/index.html +++ b/index.html @@ -86,9 +86,17 @@ data.name = strip(data.hostname); data.interfaces = _.map( - _.groupBy(data.addresses, function(x) { - return x.interface; - }), function(obj, key) { obj.device = key; return obj; }); + _.groupBy( + _.filter(data.addresses, function(x) { + return typeof x.vserver == 'undefined'; + }), + function(x) { + return x.interface; + }), + function(obj, key) { + obj.device = key; + return obj; + }); $.Mustache.load('./templates/host.html').done(function () { $('#content').mustache('hostinfo', data, {method: 'html'}); -- cgit v1.2.3-1-g7c22