diff options
author | Mark Wells <mark@freeside.biz> | 2012-09-27 19:12:43 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2012-09-27 19:12:43 -0700 |
commit | 39533c66139210655fc47404a17fd4e9b9ca8a00 (patch) | |
tree | c2e144904451d5331025716353aeba0900200f88 /httemplate/browse/radius_group.html | |
parent | f418cfff1135c9f63f3d7ebd31526b085d01e796 (diff) |
DMA Radius Manager export, #18456
Diffstat (limited to 'httemplate/browse/radius_group.html')
-rw-r--r-- | httemplate/browse/radius_group.html | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/httemplate/browse/radius_group.html b/httemplate/browse/radius_group.html index fbf6d3766..98e81ab86 100644 --- a/httemplate/browse/radius_group.html +++ b/httemplate/browse/radius_group.html @@ -5,15 +5,26 @@ 'query' => { 'table' => 'radius_group' }, 'count_query' => 'SELECT COUNT(*) FROM radius_group', 'header' => [ '#', 'RADIUS Group', 'Description', 'Priority', - 'Check', 'Reply' ], + 'Check', 'Reply', 'Speed' ], 'fields' => [ 'groupnum', 'groupname', 'description', 'priority', - $check_attr, $reply_attr + $check_attr, $reply_attr, + sub { + my $group = shift; + if ($group->speed_down and $group->speed_up) { + return join (' / ', $group->speed_down, $group->speed_up); + } elsif ( $group->speed_down ) { + return $group->speed_down . ' down'; + } elsif ( $group->speed_up ) { + return $group->speed_up . ' up'; + } + ''; + }, ], - 'align' => 'lllcll', - 'links' => [ $link, $link, '', '', '', '', + 'align' => 'lllcllc', + 'links' => [ $link, $link, '', '', '', '', '' ], &> <%init> |