diff --git a/device/models.py b/device/models.py index 7ca2a1f..9adc93d 100644 --- a/device/models.py +++ b/device/models.py @@ -315,3 +315,8 @@ class Device: def components(self): self.get_last_evidence() return self.last_evidence.get_components() + + @property + def did_document(self): + self.get_last_evidence() + return self.last_evidence.get_did_document() diff --git a/device/templates/details.html b/device/templates/details.html index af6ce7c..c5934cd 100644 --- a/device/templates/details.html +++ b/device/templates/details.html @@ -228,17 +228,33 @@
- {{ snap.uuid }} -
-uuid | +Did Document | +{% trans "Date" %} | +
---|---|---|
+ {{ snap.uuid }} + | ++ {% if snap.did_document %} + DID + {% endif %} + | ++ {{ snap.created }} + | +