diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2013-05-13 20:38:08 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-05-14 23:38:51 +0200 |
commit | 131d1040ae9c24eec4e7235fda6e439978d1fd13 (patch) | |
tree | 18d41f46c41324afe2fcb638562b8a8ab354d320 /index.html | |
parent | e6c3953c0ddd5bc39ee12bea2fb47e6f36a3531c (diff) | |
download | www-131d1040ae9c24eec4e7235fda6e439978d1fd13.tar.gz www-131d1040ae9c24eec4e7235fda6e439978d1fd13.tar.bz2 www-131d1040ae9c24eec4e7235fda6e439978d1fd13.zip |
try to hide vserver ips
Diffstat (limited to 'index.html')
-rw-r--r-- | index.html | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -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'}); |