mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 20:40:13 +01:00
decorated the disk usage table
This commit is contained in:
parent
6c443ae8d2
commit
4e1a5cb4dd
@ -45,7 +45,19 @@
|
|||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th><?php print $text_disk_usage; ?></th>
|
<th><?php print $text_disk_usage; ?></th>
|
||||||
<td><?php foreach($shortdiskinfo as $partition) { ?><span class="<?php if($partition['utilization'] < HEALTH_RATIO) { ?>text-success<?php } else { ?>text-error<?php } ?>"><?php print $partition['partition']; ?> => <?php print nice_size(1000*$partition['used']); ?> / <?php print nice_size(1000*$partition['total']); ?> (<?php print $partition['utilization']; ?>%)</span><br /> <?php } ?></td>
|
<td>
|
||||||
|
<table>
|
||||||
|
<?php foreach($shortdiskinfo as $partition) { ?>
|
||||||
|
|
||||||
|
<tr class="<?php if($partition['utilization'] < HEALTH_RATIO) { ?>text-success<?php } else { ?>text-error<?php } ?>">
|
||||||
|
<td><?php print $partition['partition']; ?></td>
|
||||||
|
<td><?php print nice_size(1000*$partition['used']); ?> / <?php print nice_size(1000*$partition['total']); ?></td>
|
||||||
|
<td>(<?php print $partition['utilization']; ?>%)</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<?php } ?>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
|
Loading…
Reference in New Issue
Block a user