Additional info for node display

This commit is contained in:
Deon George
2011-05-29 11:41:36 +10:00
parent 21b013e3ba
commit fe549c1c05
3 changed files with 35 additions and 7 deletions

View File

@@ -45,16 +45,27 @@
<td class="spacer">&nbsp;</td>
</tr>
<tr>
<td>Storage Type</td>
<td colspan="2">Storage Type</td>
<td class="right">Vols</td>
<td class="right">Files</td>
<td class="right">MB</td>
</tr>
<?php $i=0; foreach (Kohana::config('config.tsmpooltypes') as $type) { ?>
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
<td class="data"><?php echo $type; ?></td>
<td class="data" colspan="2"><?php echo $type; ?></td>
<td class="data-right"><?php echo $node->getStorageTypeVols($type); ?></td>
<td class="data-right"><?php echo $node->getStorageTypeFiles($type); ?></td>
<td class="data-right"><?php echo $node->getStorageTypeData($type); ?></td>
</tr>
<?php foreach ($node->getAllStoragePoolsType($type) as $spo) { ?>
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
<td>&nbsp;</td>
<td><?php echo $spo; ?></td>
<td class="right"><?php echo $node->getStorageTypeVols($type,$spo); ?></td>
<td class="right"><?php echo $node->getStorageTypeFiles($type,$spo); ?></td>
<td class="right"><?php echo $node->getStorageTypeData($type,$spo); ?></td>
</tr>
<?php } ?>
<?php } ?>
</table>
</td>