summaryrefslogtreecommitdiff
path: root/httemplate/view/Status.html
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2017-08-14 13:00:44 -0700
committerIvan Kohler <ivan@freeside.biz>2017-08-14 13:00:44 -0700
commit7f7a4ecece296b4c0ff81732d3cffa4a7951ae37 (patch)
treef1dc13b50ff2fe5ca13704a4f3e823ae900a19a1 /httemplate/view/Status.html
parent352650e920955b22a2468c54633d9e4c5cfaff84 (diff)
database size
Diffstat (limited to 'httemplate/view/Status.html')
-rw-r--r--httemplate/view/Status.html13
1 files changed, 11 insertions, 2 deletions
diff --git a/httemplate/view/Status.html b/httemplate/view/Status.html
index e08bfe44b..7fb03eb2f 100644
--- a/httemplate/view/Status.html
+++ b/httemplate/view/Status.html
@@ -1,4 +1,7 @@
<& /elements/header.html, 'System Status' &>
+
+<& /elements/init_overlib.html &>
+
% foreach my $section ( keys %status ) {
<FONT CLASS="fsinnerbox-title"><% mt($section) |h %></FONT>
<TABLE CLASS="fsinnerbox">
@@ -11,6 +14,7 @@
</TABLE>
<BR><BR>
% }
+
<& /elements/footer.html &>
<%init>
@@ -40,8 +44,13 @@ if ( $db eq 'PostgreSQL' && $db_ver =~ /^\s*PostgreSQL\s+([\w\.]+)\s+on\s+/ ) {
my $db_size = 'Unknown';
if ( $db eq 'PostgreSQL' ) {
$db_size = FS::Record->scalar_sql(qq(
- SELECT pg_size_pretty(pg_database_size('freeside'))
- ));
+ SELECT pg_size_pretty(pg_database_size('freeside'))
+ )). ' '.
+ include('/elements/popup_link.html',
+ 'action' => 'Status-db_size_detail.html',
+ 'label' => '(details)',
+ 'actionlabel' => 'Database size details',
+ );
}
tie my %status, 'Tie::IxHash',