Commit eb543a23 authored by Benjamin Sonntag's avatar Benjamin Sonntag

new palette for quota

parent 216b1b22
......@@ -61,19 +61,19 @@
}
$usage_percent = (int) ($q[$key]["u"] / $q[$key]["t"] * 100);
$usage_color = ($q[$key]["u"] > $q[$key]["t"] ? '#f00' : '#0f0');
$usage_color = ((85 < $usage_percent && $usage_percent < 100) ? '#ff0' : $usage_color); // yellow
$usage_color = ($q[$key]["u"] > $q[$key]["t"] ? '#800' : '#080');
$usage_color = ((85 < $usage_percent && $usage_percent <= 100) ? '#ff8800' : $usage_color); // yellow
$url = ($key == 'bw_web' ? 'stats_show_per_month.php' : 'quota_show.php');
echo "<dd>";
echo '<div><a href="' . $url . '">' . /* _($val) */ _("quota_".$key) . ' ' . $usage_percent . '%' . ' <small>(' . format_size($q[$key]["u"],true) . '&nbsp;/&nbsp;' . format_size($q[$key]["t"],true) . ')</small></a></div>';
echo "</dd>";
echo "<dd>";
echo '<ul><li>';
echo '<div><a href="' . $url . '">' . /* _($val) */ _("quota_".$key) . " " . sprintf(_("%s%% of %s"),$usage_percent,format_size($q[$key]["t"])) . '</a></div>';
echo "</li>\n";
echo '<li>';
echo '<div class="progress-bar">';
echo '<div style="width: ' . ($usage_percent > 100 ? 100 : $usage_percent) . '%; background: ' . $usage_color . ';">&nbsp;</div>';
echo '</div>';
echo "</dd>";
echo '</li></ul>';
}
}
?>
......
......@@ -589,7 +589,7 @@ input#dir, input#sub_local {
width: 180px;
background: #fff;
border: solid 1px #AAA;
padding-bottom
margin-left: 10px;
}
.ombrage {
......
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