From fe43b49db4dbc82baaf1d2a38e2dc01bb0c7afe9 Mon Sep 17 00:00:00 2001 From: Daniel Markstedt Date: Sun, 3 Dec 2023 10:53:57 +0900 Subject: [PATCH] Show labels for unknown devices --- python/web/src/templates/index.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/python/web/src/templates/index.html b/python/web/src/templates/index.html index 5ef7a8b0..8d1130c3 100644 --- a/python/web/src/templates/index.html +++ b/python/web/src/templates/index.html @@ -418,7 +418,17 @@ {% for type in device_types.keys() %} + {% if device_types[type]["name"] == type %} + {% if type in REMOVABLE_DEVICE_TYPES %} +
{{ _("Unknown Removable Disk Drive") }}
+ {% elif type in DISK_DEVICE_TYPES %} +
{{ _("Unknown Fixed Disk Drive") }}
+ {% else %} +
{{ _("Unknown Device") }}
+ {% endif %} + {% else %}
{{ device_types[type]["name"] }}
+ {% endif %}
{{ type }}