mirror of
https://github.com/unraid/webgui.git
synced 2026-01-07 18:19:54 -06:00
Main page: fix initial table creation
This commit is contained in:
@@ -74,8 +74,8 @@ $('#tab1').bind({click:function() {$('i.toggle').show('slow');}});
|
||||
<thead><tr><td>_(Device)_</td><td>_(Identification)_</td><td>_(Temp)_<?=$power?></td><td>_(Reads)_</td><td>_(Writes)_</td><td>_(Errors)_</td><td>_(FS)_</td><td>_(Size)_</td><td>_(Used)_</td><td>_(Free)_</td></tr></thead>
|
||||
<tbody id="array_devices">
|
||||
<?
|
||||
foreach (main_filter($disks) as $disk) if (substr($disk['status'],0,7)!='DISK_NP') echo "<tr><td colspan='10'> </td></tr>";
|
||||
if (_var($display,'total') && _var($var,'mdNumDisks',0)>1) echo "<tr class='tr_last'><td colspan='10'> </td></tr>";
|
||||
foreach (main_filter($disks) as $disk) if (substr($disk['status'],0,7)!='DISK_NP') echo "<tr><td colspan='10'></td></tr>";
|
||||
if (_var($display,'total') && _var($var,'mdNumDisks',0)>1) echo "<tr class='tr_last'><td colspan='10'></td></tr>";
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@@ -23,7 +23,7 @@ $('#tab3').bind({click:function() {$('i.toggle').show('slow');}});
|
||||
<table class="disk_status wide">
|
||||
<thead><tr><td>_(Device)_</td><td>_(Identification)_</td><td>_(Temp)_</td><td>_(Reads)_</td><td>_(Writes)_</td><td>_(Errors)_</td><td>_(FS)_</td><td>_(Size)_</td><td>_(Used)_</td><td>_(Free)_</td></tr></thead>
|
||||
<tbody id="boot_device">
|
||||
<?if (isset($disks['flash'])) echo "<tr><td colspan='11'> </td></tr>";?>
|
||||
<?if (isset($disks['flash'])) echo "<tr><td colspan='10'></td></tr>";?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
@@ -146,8 +146,8 @@ $root = explode($_tilde_,$pool)[0];
|
||||
<?endif;?>
|
||||
<?endif;?>
|
||||
<tbody id="pool_device<?=$i++?>">
|
||||
<?foreach ($cache as $disk) if (substr($disk['status'],0,7)!='DISK_NP') echo "<tr><td colspan='10'> </td></tr>"?>
|
||||
<?if (_var($display,'total') && _var($cache[$root],'devices',0)>1) echo "<tr class='tr_last'><td colspan='10'> </td></tr>"?>
|
||||
<?foreach ($cache as $disk) if (substr($disk['status'],0,7)!='DISK_NP') echo "<tr><td colspan='10'></td></tr>"?>
|
||||
<?if (_var($display,'total') && _var($cache[$root],'devices',0)>1) echo "<tr class='tr_last'><td colspan='10'></td></tr>"?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?endif;?>
|
||||
|
||||
@@ -30,7 +30,7 @@ $('<?=$tabX?>').bind({click:function() {$('i.toggle').show('slow');}});
|
||||
<tbody id="open_devices">
|
||||
<?
|
||||
foreach ($devs as $dev):
|
||||
echo "<tr><td colspan='10'> </td></tr>";
|
||||
echo "<tr><td colspan='10'></td></tr>";
|
||||
endforeach;
|
||||
?>
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user