summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2016-03-10 09:00:55 -0500
committerStephen Beaver <sbeaver@netgate.com>2016-03-10 09:01:44 -0500
commit990a985ebc40be12759195265ad6a44fd7fe320e (patch)
tree2f0e20d58de400a16943f1cb39e96e45461030c6 /src
parent3b36f1a78d6c8adf5b8da17ec309018c0dec2277 (diff)
downloadpfsense-990a985ebc40be12759195265ad6a44fd7fe320e.zip
pfsense-990a985ebc40be12759195265ad6a44fd7fe320e.tar.gz
Revised disk space display to use progress bar
Diffstat (limited to 'src')
-rw-r--r--src/usr/local/www/widgets/widgets/system_information.widget.php23
1 files changed, 10 insertions, 13 deletions
diff --git a/src/usr/local/www/widgets/widgets/system_information.widget.php b/src/usr/local/www/widgets/widgets/system_information.widget.php
index 2beb8df..77056dd 100644
--- a/src/usr/local/www/widgets/widgets/system_information.widget.php
+++ b/src/usr/local/www/widgets/widgets/system_information.widget.php
@@ -285,23 +285,20 @@ $filesystems = get_mounted_filesystems();
</td>
</tr>
<?php endif; ?>
+
+<?php $diskidx = 0; foreach ($filesystems as $fs): ?>
<tr>
- <th><?=gettext("Disk usage");?></th>
+ <th><?=gettext("Disk usage");?>&nbsp;( <?=$fs['mountpoint']?> )</th>
<td>
- <table class="table">
-<?php foreach ($filesystems as $fs): ?>
- <tr>
- <th><?=$fs['mountpoint']?></th>
- <td><?=$fs['type'] . ("md" == substr(basename($fs['device']), 0, 2) ? " " . gettext("in RAM") : "")?></td>
- <td><?=$fs['total_size']?>iB</td>
- <td>
- <span><?=$fs['percent_used']?>%</span>
- </td>
- </tr>
-<?php endforeach; ?>
- </table>
+ <div class="progress" >
+ <div id="diskspace<?=$diskidx?>" class="progress-bar progress-bar-striped" role="progressbar" aria-valuenow="<?=$fs['percent_used']?>" aria-valuemin="0" aria-valuemax="100" style="width: <?=$fs['percent_used']?>%">
+ </div>
+ </div>
+ <span><?=$fs['percent_used']?>%<?=gettext(" of ")?><?=$fs['total_size']?>iB - <?=$fs['type'] . ("md" == substr(basename($fs['device']), 0, 2) ? " " . gettext("in RAM") : "")?></spa>
</td>
</tr>
+<?php $diskidx++; endforeach; ?>
+
</tbody>
</table>
OpenPOWER on IntegriCloud