summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2013-05-13 20:38:08 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2013-05-14 23:38:51 +0200
commit131d1040ae9c24eec4e7235fda6e439978d1fd13 (patch)
tree18d41f46c41324afe2fcb638562b8a8ab354d320
parente6c3953c0ddd5bc39ee12bea2fb47e6f36a3531c (diff)
downloadwww-131d1040ae9c24eec4e7235fda6e439978d1fd13.tar.gz
www-131d1040ae9c24eec4e7235fda6e439978d1fd13.tar.bz2
www-131d1040ae9c24eec4e7235fda6e439978d1fd13.zip
try to hide vserver ips
-rw-r--r--index.html14
1 files 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'});