Commit f15638ad authored by Leigh B Stoller's avatar Leigh B Stoller

Tweak to usage along the top.

parent e739457c
......@@ -330,20 +330,19 @@ $PAGEHEADER_FUNCTION = function($thinheader = 0, $ignore1 = NULL,
$monthsusage = Instance::MonthsUsage($login_user);
if ($phours || $weeksusage || $monthsusage) {
echo "<center style='margin-bottom: 5px; margin-top: -8px'>";
if ($phours) {
if ($phours)
$phours = sprintf("%.2f", $phours);
echo "<span class='text-info'>
echo "<span class='text-info'>
Current Usage: $phours Node Hours</span>";
}
if ($weeksusage) {
$weeksusage = sprintf("%.0f", $weeksusage);
if ($phours) echo ", ";
echo ", ";
echo "<span class='text-warning'>
Prev Week: $weeksusage</span>";
}
if ($monthsusage) {
$monthsusage = sprintf("%.0f", $monthsusage);
if ($phours || $weeksusage) echo ", ";
echo ", ";
echo "<span class='text-danger'>
Prev Month: $monthsusage</span>";
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment