Skip to content

Commit

Permalink
Show labels for unknown devices
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmark committed Dec 3, 2023
1 parent a2fe2ee commit fe43b49
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions python/web/src/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit fe43b49

Please sign in to comment.