better formatting of disk quotas info
This commit is contained in:
parent
a248eee925
commit
40028613fd
|
@ -51,8 +51,10 @@ if (!is_array($q)) {
|
|||
echo _($val);
|
||||
if ($q[$key]["u"] >= $q[$key]["t"]) echo "</font>";
|
||||
|
||||
if ($val == 'quota_bw_web') {
|
||||
if ($key == 'bw_web') {
|
||||
echo " </td><td align=\"center\">". format_size($q[$key]["u"]) ." </td><td align=\"center\">". format_size($q[$key]["t"]) ." </td>";
|
||||
} elseif ($key == 'web') {
|
||||
echo " </td><td align=\"center\">". format_size($q[$key]["u"] * 1024) . " </td><td align=\"center\">". format_size($q[$key]["t"]) ." </td>";
|
||||
} else {
|
||||
echo " </td><td align=\"center\">".$q[$key]["u"]." </td><td align=\"center\">".$q[$key]["t"]." </td>";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue