diff --git a/device/templates/details.html b/device/templates/details.html
index 8fd9b85..acc79cf 100644
--- a/device/templates/details.html
+++ b/device/templates/details.html
@@ -37,6 +37,9 @@
{% trans 'General details' %}
+
+ {% trans 'States' %}
+
{% trans 'User properties' %}
@@ -134,14 +137,30 @@
{% trans 'Current State' %}
-
-
{% trans 'State' %}
-
{{ device_states.0.state }}
-
-
-
{% trans 'Date' %}
-
{{ device_states.0.date|date:"SHORT_DATETIME_FORMAT" }}
-
+
+
+
+
+ {% trans 'State' %} |
+ {% trans 'User' %} |
+ {% trans 'Date' %} |
+
+
+
+ {% if device_states %}
+
+ {{ device_states.0.state }} |
+ {{ device_states.0.user.responsable_person|default:device_states.0.user.username }} |
+ {{ device_states.0.date|date:"SHORT_DATETIME_FORMAT" }} |
+
+ {% else %}
+
+ {% trans 'No state recorded.' %} |
+
+ {% endif %}
+
+
+
{% if last_note %}
@@ -157,6 +176,38 @@
+
+
+
+
+
{% trans 'History of States' %}
+
+
+
+
+ {% trans 'Date' %} |
+ {% trans 'User' %} |
+ {% trans 'State' %} |
+
+
+
+ {% for state_change in device_states %}
+
+ {{ state_change.state }} |
+
+ {{ state_change.user.responsable_person|default:state_change.user.username }} |
+ {{ state_change.date|date:"SHORT_DATETIME_FORMAT" }} |
+
+ {% empty %}
+
+ {% trans 'No state changes recorded.' %} |
+
+ {% endfor %}
+
+
+
+
+