summaryrefslogtreecommitdiff
path: root/httemplate/browse/radius_group.html
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2012-09-27 19:12:43 -0700
committerMark Wells <mark@freeside.biz>2012-09-27 19:12:43 -0700
commit39533c66139210655fc47404a17fd4e9b9ca8a00 (patch)
treec2e144904451d5331025716353aeba0900200f88 /httemplate/browse/radius_group.html
parentf418cfff1135c9f63f3d7ebd31526b085d01e796 (diff)
DMA Radius Manager export, #18456
Diffstat (limited to 'httemplate/browse/radius_group.html')
-rw-r--r--httemplate/browse/radius_group.html19
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>