From 38b860fbd7131579e61972139a016e3c9f011085 Mon Sep 17 00:00:00 2001 From: Thomas Rusiecki Date: Sun, 9 Feb 2025 20:44:13 -0300 Subject: [PATCH] shorter id to snap link --- device/templates/details.html | 38 +++++++++++++++++++--------- device/templates/tabs/evidences.html | 2 +- 2 files changed, 27 insertions(+), 13 deletions(-) diff --git a/device/templates/details.html b/device/templates/details.html index dd64d6f..040a145 100644 --- a/device/templates/details.html +++ b/device/templates/details.html @@ -1,14 +1,7 @@ {% extends 'base.html' %} {% load i18n %} - -{% block content %} - -
-
-

{{ object.shortid }}

-
-
-
+{% block actions %} + {% if state_definitions %} @@ -52,10 +45,12 @@ {% trans "Add a note" %} -
-
-
+{% endblock %} +{% block content %} +
+

{{ object.shortid }}

+
@@ -127,6 +122,25 @@
+ + {% if dpps %} +
+
{% trans 'List of dpps' %}
+
+ {% for d in dpps %} +
+
+ {{ d.timestamp }} + {{ d.type }} +
+

+ {{ d.signature }} +

+
+ {% endfor %} +
+
+ {% endif %} {% endblock %} diff --git a/device/templates/tabs/evidences.html b/device/templates/tabs/evidences.html index 52f2b37..f86942b 100644 --- a/device/templates/tabs/evidences.html +++ b/device/templates/tabs/evidences.html @@ -16,7 +16,7 @@ {% for snap in object.evidences %} - {{ snap.uuid }} + {{ snap.uuid|truncatechars:7|upper }} {% if snap.did_document %}