summaryrefslogtreecommitdiff
path: root/fs_selfservice/FS-SelfService/cgi/view_usage.html
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2016-06-09 23:50:43 -0500
committerJonathan Prykop <jonathan@freeside.biz>2016-06-10 00:03:13 -0500
commit68fbaf7cc232930ef94015f1ee3d503bdb55c388 (patch)
tree7ea4e49453df53f68ee25ebc5a559bc89975d742 /fs_selfservice/FS-SelfService/cgi/view_usage.html
parent7ecfcfeda7f249f89534f01da509a51a6c44b082 (diff)
RT#42297: Show total usage on Selfservice View my usage page
Diffstat (limited to 'fs_selfservice/FS-SelfService/cgi/view_usage.html')
-rw-r--r--fs_selfservice/FS-SelfService/cgi/view_usage.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/fs_selfservice/FS-SelfService/cgi/view_usage.html b/fs_selfservice/FS-SelfService/cgi/view_usage.html
index 07ccfedf1..2b9eb8bc2 100644
--- a/fs_selfservice/FS-SelfService/cgi/view_usage.html
+++ b/fs_selfservice/FS-SelfService/cgi/view_usage.html
@@ -75,6 +75,18 @@
$OUT .= '</TR>';
}
}
+ if ((@bytes_svcs > 1) and (grep { $bytes_show{$_.'_used'} } qw(seconds upbytes downbytes totalbytes) )) {
+ $OUT .= '<TR>';
+ $OUT .= '<TH align="left">Total Used</TH>';
+ foreach my $field (@bytes_cols) {
+ if ($bytes_show{$field}) {
+ $OUT .= '<TD ALIGN="right">';
+ $OUT .= $bytes_used_total{$field} || '0' if $field =~ /_used$/;
+ $OUT .= '</TD>';
+ }
+ }
+ $OUT .= '</TR>';
+ }
%>
<%= scalar(@bytes_svcs) ? '</TABLE><BR><BR>' : '' %>