mirror of
https://github.com/unraid/webgui.git
synced 2026-01-01 15:10:19 -06:00
43 lines
1.4 KiB
Plaintext
43 lines
1.4 KiB
Plaintext
Menu="Main:1"
|
|
Title="Array Devices"
|
|
Tag="database"
|
|
Cond="(_var($var,'SYS_ARRAY_SLOTS') > 0 || $var['fsState']=='Stopped')"
|
|
---
|
|
<?PHP
|
|
/* Copyright 2005-2023, Lime Technology
|
|
* Copyright 2012-2023, Bergware International.
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License version 2,
|
|
* as published by the Free Software Foundation.
|
|
*
|
|
* The above copyright notice and this permission notice shall be included in
|
|
* all copies or substantial portions of the Software.
|
|
*/
|
|
?>
|
|
<?
|
|
$power = _var($display,'power') && in_array('nvme',array_column(main_filter($disks),'transport')) ? _('Power').' / ' : '';
|
|
?>
|
|
<script>
|
|
<?if (_var($var,'fsState')=="Started"):?>
|
|
$('#tab1').bind({click:function() {$('i.toggle').show('slow');}});
|
|
<?endif;?>
|
|
</script>
|
|
|
|
<table class="unraid disk_status">
|
|
<thead><tr><td>_(Device)_</td><td>_(Identification)_</td><td><?=$power?>_(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="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>";
|
|
?>
|
|
</tbody>
|
|
</table>
|
|
|
|
:main_array_devices_help:
|
|
|
|
<?if (_var($var,'fsState')=="Stopped"):?>
|
|
<div></div>
|
|
:main_slots_help:
|
|
<?endif;?>
|