diff --git a/customer_index.php b/customer_index.php index c4a1ea80..02b65683 100644 --- a/customer_index.php +++ b/customer_index.php @@ -115,10 +115,14 @@ if ($page == 'overview') { if ($usages) { $userinfo['diskspace_bytes_used'] = $usages['webspace'] * 1024; + $userinfo['mailspace_used'] = $usages['mail'] * 1024; + $userinfo['dbspace_used'] = $usages['mysql'] * 1024; $userinfo['total_bytes_used'] = ($usages['webspace'] + $usages['mail'] + $usages['mysql']) * 1024; } else { $userinfo['diskspace_bytes_used'] = 0; $userinfo['total_bytes_used'] = 0; + $userinfo['mailspace_used'] = 0; + $userinfo['dbspace_used'] = 0; } UI::twig()->addGlobal('userinfo', $userinfo); diff --git a/templates/Froxlor/user/dashboard-item.html.twig b/templates/Froxlor/user/dashboard-item.html.twig index 522b3566..61272077 100644 --- a/templates/Froxlor/user/dashboard-item.html.twig +++ b/templates/Froxlor/user/dashboard-item.html.twig @@ -1,7 +1,7 @@ -{% macro ditem(lngstr, available, used, assigned = null, formatbytes = false) %} +{% macro ditem(lngstr, available, used, assigned = null, formatbytes = false, byte_usage = null) %}