From 54f3bcd7f37a2f2e56d749c2542921b6486507ae Mon Sep 17 00:00:00 2001 From: sergio_gimenez Date: Tue, 22 Oct 2024 07:24:42 +0200 Subject: [PATCH] Fix details template --- device/templates/details.html | 154 +++++++++++----------------------- 1 file changed, 49 insertions(+), 105 deletions(-) diff --git a/device/templates/details.html b/device/templates/details.html index b731597..e2a5874 100644 --- a/device/templates/details.html +++ b/device/templates/details.html @@ -2,46 +2,9 @@ {% load i18n %} {% block content %} -
-
-

{{ object.shortid }}

-
-
- -
-
- -
-
-
- -
-
Details
-
-
Phid
-
{{ object.id }}
+
+
+

{{ object.shortid }}

@@ -49,25 +12,25 @@
@@ -85,61 +48,18 @@
{{ object.type }}
- - Add new document - - -
- -
Documents
- - - - - - - - - - - - {% for a in object.get_user_documents %} - - - - - - - - {% endfor %} - - -
KeyValueCreated on
{{ a.key }}{{ a.value }}{{ a.created }}
-
- -
-
Components last evidence
-
- {% for c in object.components %} -
-
-
{{ c.type }}
- {{ evidence.created }} + {% if object.is_websnapshot %} + {% for k, v in object.last_user_evidence %} +
+
{{ k }}
+
{{ v|default:'' }}
+
+ {% endfor %} + {% else %} +
+
Manufacturer
+
{{ object.manufacturer|default:'' }}
-

- {% for k, v in c.items %} - {% if k not in "actions,type" %} - {{ k }}: {{ v }}
- {% endif %} - {% endfor %} -
-

- - -
- {% endfor %} -
-
Model
@@ -248,16 +168,19 @@
Components last evidence
- {% for c in object.last_evidence.doc.components %} + {% for c in object.components %}
{{ c.type }}
{{ evidence.created }}

- {{ c.manufacturer }}
- {{ c.model }}
- {{ c.serialNumber }}
+ {% for k, v in c.items %} + {% if k not in 'actions,type' %} + {{ k }}: {{ v }}
+ {% endif %} + {% endfor %} +

@@ -284,3 +207,24 @@
{% endblock %} + +{% block extrascript %} + +{% endblock %}