Show labels for unknown devices

This commit is contained in:
Daniel Markstedt 2023-12-03 10:53:57 +09:00
parent a2fe2ee601
commit fe43b49db4
1 changed files with 10 additions and 0 deletions

View File

@ -418,7 +418,17 @@
{% for type in device_types.keys() %}
<tr>
<td>
{% if device_types[type]["name"] == type %}
{% if type in REMOVABLE_DEVICE_TYPES %}
<div>{{ _("Unknown Removable Disk Drive") }}</div>
{% elif type in DISK_DEVICE_TYPES %}
<div>{{ _("Unknown Fixed Disk Drive") }}</div>
{% else %}
<div>{{ _("Unknown Device") }}</div>
{% endif %}
{% else %}
<div>{{ device_types[type]["name"] }}</div>
{% endif %}
</td>
<td>
<div>{{ type }}</div>