From b6b8c6a1f92cf5bec86bda4b76d68f5ead5a806d Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 18 Apr 2023 10:10:43 +0200 Subject: [PATCH 1/2] add new columns --- .../templates/inventory/device_detail.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ereuse_devicehub/templates/inventory/device_detail.html b/ereuse_devicehub/templates/inventory/device_detail.html index c5e65e37..5aa45f06 100644 --- a/ereuse_devicehub/templates/inventory/device_detail.html +++ b/ereuse_devicehub/templates/inventory/device_detail.html @@ -214,6 +214,8 @@ File + Type + Description Uploaded on @@ -230,8 +232,14 @@ {% endif %} - {{ doc.created.strftime('%Y-%m-%d %H:%M')}} + {{ doc.type }} + + + {{ doc.description|truncate(30, True) }} + + {{ doc.created.strftime('%Y-%m-%d %H:%M') }} + From 6692233a22ee10d4b774d1b9c1335fa53168a725 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 18 Apr 2023 11:08:43 +0200 Subject: [PATCH 2/2] fix --- ereuse_devicehub/templates/inventory/device_detail.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ereuse_devicehub/templates/inventory/device_detail.html b/ereuse_devicehub/templates/inventory/device_detail.html index 5aa45f06..6b55a799 100644 --- a/ereuse_devicehub/templates/inventory/device_detail.html +++ b/ereuse_devicehub/templates/inventory/device_detail.html @@ -235,7 +235,9 @@ {{ doc.type }} + {% if doc.description %} {{ doc.description|truncate(30, True) }} + {% endif %} {{ doc.created.strftime('%Y-%m-%d %H:%M') }}