Added volume reporting, improved overall configuration view

This commit is contained in:
Deon George
2012-11-30 13:03:26 +11:00
parent 4b51fc2727
commit d0095bb159
12 changed files with 217 additions and 248 deletions

View File

@@ -0,0 +1,21 @@
<!-- $o = ORM::factory('VOLUME') -->
<table class="box-full">
<tr>
<td class="head" colspan="2">Nodes with Data on this Volume</td>
</tr>
<tr>
<td class="spacer">&nbsp;</td>
</tr>
<tr>
<td>Node</td>
<td>Type</td>
<td>File Space</td>
</tr>
<?php $i=0; foreach ($o->VOLUMEUSAGE->find_all() as $oo) { ?>
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
<td class="data"><?php echo HTML::anchor('node/detail/'.$oo->NODE_NAME,$oo->NODE_NAME); ?></td>
<td class="data"><?php echo $oo->display('COPY_TYPE'); ?></td>
<td class="data"><?php echo $oo->display('FILESPACE_NAME'); ?></td>
</tr>
<?php } ?>
</table>