From 31272b420c6206e82ce8b622fd14bf469fe1e126 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Mon, 2 Jun 2014 17:01:20 -0700 Subject: show MAC address vendors --- httemplate/view/elements/svc_Common.html | 11 ++++++++--- httemplate/view/elements/svc_devices.html | 4 +++- 2 files changed, 11 insertions(+), 4 deletions(-) (limited to 'httemplate/view/elements') diff --git a/httemplate/view/elements/svc_Common.html b/httemplate/view/elements/svc_Common.html index 65f373cb6..b12d2ddcd 100644 --- a/httemplate/view/elements/svc_Common.html +++ b/httemplate/view/elements/svc_Common.html @@ -105,9 +105,14 @@ function areyousure(href) { %> -% $value = time2str($date_format,$value) if ( $type eq 'date' && $value ); -% $value = time2str("$date_format %H:%M",$value) if ( $type eq 'datetime' && $value ); -% $value = $value eq 'Y' ? emt('Yes') : emt('No') if ( $type eq 'checkbox' ); +% $value = time2str($date_format,$value) +% if $type eq 'date' && $value; +% $value = time2str("$date_format %H:%M",$value) +% if $type eq 'datetime' && $value; +% $value = $value eq 'Y' ? emt('Yes') : emt('No') +% if $type eq 'checkbox'; +% $value .= ' ('. (Net::MAC::Vendor::lookup($value))->[0]. ')' +% if $type =~ /mac_addr$/ && $value =~ /\w/i; % #eventually more options for