summaryrefslogtreecommitdiff
path: root/httemplate/view/Status.html
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2017-08-06 13:17:42 -0700
committerIvan Kohler <ivan@freeside.biz>2017-08-06 13:17:42 -0700
commit78614fdd18b325902088617ba62e67caff34ddf0 (patch)
tree8a8c96f795d4bad126a6470d5d43671e9c42a4ed /httemplate/view/Status.html
parent740834abbf5434a60a7ded2c0b48430420e995a9 (diff)
show database size detail
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',