Merge pull request #834 from nclsHart/webui-public-ip-address

[Web UI] Add public IP address
This commit is contained in:
Nicolas Hennion 2016-04-03 10:39:57 +02:00
commit 0fd8567d33
2 changed files with 7 additions and 5 deletions

View File

@ -1 +1 @@
&nbsp;-&nbsp;<span class="title">IP</span> <span>{{ statsIp.address }}/{{ statsIp.maskCidr }}</span>
&nbsp;-&nbsp;<span class="title">IP</span>&nbsp;<span>{{ statsIp.address }}/{{ statsIp.maskCidr }}</span>&nbsp;<span class="title">Pub</span>&nbsp;<span>{{ statsIp.publicAddress }}</span>

View File

@ -5,13 +5,15 @@ glancesApp.service('GlancesPluginIp', function() {
this.gateway = null;
this.mask = null;
this.maskCidr = null;
this.publicAddress = null;
this.setData = function(data, views) {
data = data[_pluginName];
this.address = data['address'];
this.gateway = data['gateway'];
this.mask = data['mask'];
this.maskCidr = data['mask_cidr'];
this.address = data.address;
this.gateway = data.gateway;
this.mask = data.mask;
this.maskCidr = data.mask_cidr;
this.publicAddress = data.public_address
};
});