From 65bd88a2a27aad5b28bca4785d96422a452947c3 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 31 Oct 2024 13:15:56 +0100 Subject: [PATCH] table in evidence page details --- evidence/templates/ev_details.html | 58 +++++++++++++++++++----------- 1 file changed, 38 insertions(+), 20 deletions(-) diff --git a/evidence/templates/ev_details.html b/evidence/templates/ev_details.html index 6a40962..563ca92 100644 --- a/evidence/templates/ev_details.html +++ b/evidence/templates/ev_details.html @@ -29,26 +29,44 @@
-
List of chids
+
- {% for snap in object.annotations %} - {% if snap.type == 0 %} -
-
-
- - {{ snap.created }} - -
-

- {{ snap.key }}
-

- - {{ snap.value }} - -
- {% endif %} - {% endfor %} + + + + + + + + + {% for snap in object.annotations %} + + {% if snap.type == 0 %} + + + + + + {% endif %} + + {% endfor %} +
+ {% trans "Type" %} + + {% trans "Identificator" %} + + {% trans "Data" %} +
+ {{ snap.key }} + + + {{ snap.value }} + + + + {{ snap.created }} + +
@@ -97,7 +115,7 @@ if (hash) { // Buscar el botón o enlace que corresponde al hash y activarlo const tabTrigger = document.querySelector(`[data-bs-target="${hash}"]`); - + if (tabTrigger) { // Crear una instancia de tab de Bootstrap para activar el tab const tab = new bootstrap.Tab(tabTrigger);