From a9715201a59c1af0b1f1d08e7178d75b6d33872c Mon Sep 17 00:00:00 2001 From: Jonathan Prykop Date: Thu, 9 Jun 2016 23:50:43 -0500 Subject: RT#42297: Show total usage on Selfservice View my usage page --- fs_selfservice/FS-SelfService/cgi/view_usage.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'fs_selfservice/FS-SelfService') 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 .= ''; } } + if ((@bytes_svcs > 1) and (grep { $bytes_show{$_.'_used'} } qw(seconds upbytes downbytes totalbytes) )) { + $OUT .= ''; + $OUT .= 'Total Used'; + foreach my $field (@bytes_cols) { + if ($bytes_show{$field}) { + $OUT .= ''; + $OUT .= $bytes_used_total{$field} || '0' if $field =~ /_used$/; + $OUT .= ''; + } + } + $OUT .= ''; + } %> <%= scalar(@bytes_svcs) ? '

' : '' %> -- cgit v1.2.1