mirror of
https://github.com/unraid/webgui.git
synced 2026-04-24 11:19:25 -05:00
Change messages to indicate the disk parameters are not available when spun down, rather that sounding like there is a failure to read them.
This commit is contained in:
@@ -95,7 +95,7 @@ case "attributes":
|
||||
$empty = false;
|
||||
}
|
||||
}
|
||||
if ($empty) echo "<tr><td colspan='10' style='text-align:center;padding-top:12px'>"._('Can not read attributes')."</td></tr>";
|
||||
if ($empty) echo "<tr><td colspan='10' style='text-align:center;padding-top:12px'>"._('Attributes not available')."</td></tr>";
|
||||
break;
|
||||
case "capabilities":
|
||||
echo '<table id="disk_capabilities_table" class="share_status small"><thead><td style="width:33%">'._('Feature').'</td><td>'._('Value').'</td><td>'._('Information').'</td></thead><tbody>' ;
|
||||
@@ -166,7 +166,7 @@ case "capabilities":
|
||||
echo '</tr>' ;
|
||||
}
|
||||
}
|
||||
if ($empty) echo "<tr><td colspan='3' style='text-align:center;padding-top:12px'>"._('Can not read capabilities')."</td></tr>";
|
||||
if ($empty) echo "<tr><td colspan='3' style='text-align:center;padding-top:12px'>"._('Capabilities not available')."</td></tr>";
|
||||
echo "</tbody></table>" ;
|
||||
break;
|
||||
case "identify":
|
||||
@@ -187,7 +187,7 @@ case "identify":
|
||||
}
|
||||
if ($empty) {
|
||||
$spundown = $disk['spundown'] ? "(device spundown, spinup to get information)" : "" ;
|
||||
echo "<tr><td colspan='2' style='text-align:center;padding-top:12px'>"._('Can not read identification'.$spundown)."</td></tr>";
|
||||
echo "<tr><td colspan='2' style='text-align:center;padding-top:12px'>"._('Identification not available'.$spundown)."</td></tr>";
|
||||
} else {
|
||||
$file = '/boot/config/disk.log';
|
||||
$extra = file_exists($file) ? parse_ini_file($file,true) : [];
|
||||
|
||||
Reference in New Issue
Block a user