summaryrefslogtreecommitdiff
path: root/httemplate/search
diff options
context:
space:
mode:
authorjeff <jeff>2006-12-07 02:40:32 +0000
committerjeff <jeff>2006-12-07 02:40:32 +0000
commit6194551336a925ae5455cede68a7f73660b06bb6 (patch)
tree54be12685fdfcc4b3da1ccfca8a42bff1a2b128c /httemplate/search
parent571d5e87ffc63a155072dab88fba16d5918cc57d (diff)
retouch bandwidth countdown
Diffstat (limited to 'httemplate/search')
-rw-r--r--httemplate/search/prepay_credit.html20
1 files changed, 16 insertions, 4 deletions
diff --git a/httemplate/search/prepay_credit.html b/httemplate/search/prepay_credit.html
index fecb12f2a..c79acb005 100644
--- a/httemplate/search/prepay_credit.html
+++ b/httemplate/search/prepay_credit.html
@@ -22,16 +22,27 @@
},
'count_query' => $count_query,
#'redirect' => $link,
- 'header' => [ '#', qw(Amount Time Upload Download Agent) ],
+ 'header' => [ '#', qw(Amount Time Upload Download Total Agent) ],
'fields' => [
'identifier',
sub { sprintf('$%.2f', shift->amount ) },
- sub { my $c = shift; $c ? duration_exact($c->seconds) : '' },
sub { my $c = shift;
- $c ? FS::UI::Web::bytecount_unexact($c->upbytes) : ''
+ $c->seconds ? duration_exact($c->seconds) : ''
},
sub { my $c = shift;
- $c ? FS::UI::Web::bytecount_unexact($c->downbytes) : ''
+ $c->upbytes
+ ? FS::UI::Web::bytecount_unexact($c->upbytes)
+ : ''
+ },
+ sub { my $c = shift;
+ $c->downbytes
+ ? FS::UI::Web::bytecount_unexact($c->downbytes)
+ : ''
+ },
+ sub { my $c = shift;
+ $c->totalbytes
+ ? FS::UI::Web::bytecount_unexact($c->totalbytes)
+ : ''
},
sub { my $agent = shift->agent;
$agent ? $agent->agent : '';
@@ -43,6 +54,7 @@
'',
'',
'',
+ '',
sub { my $agent = shift->agent;
$agent ? [ "${p}view/agent.cgi?", 'agentnum' ] : '';
},