diff --git a/templates/base.html b/templates/base.html index 044e739..8d8a1a4 100644 --- a/templates/base.html +++ b/templates/base.html @@ -36,6 +36,11 @@ } + {% block style %} {% endblock %} diff --git a/templates/camera_events_partial.html b/templates/camera_events_partial.html index 8e1b835..70585cd 100644 --- a/templates/camera_events_partial.html +++ b/templates/camera_events_partial.html @@ -1,15 +1,26 @@

List of Events

{{ template_values['camera'].name }}
- \ No newline at end of file +{% if template_values['events'] %} + {% for event in template_values['events'] %} +
+
+ Status: +
+
+ {{ event['data'][0]['newStatus']['connectionStatus'] }} +
+
+ End: +
+
+ {{ event['endTimestamp'] }} +
+
+ Start: +
+
+ {{ event['startTimestamp'] }} +
+
+ {% endfor %} +{% endif %} \ No newline at end of file diff --git a/templates/cameras_partial.html b/templates/cameras_partial.html index 58c7ee7..c77f3d5 100644 --- a/templates/cameras_partial.html +++ b/templates/cameras_partial.html @@ -5,11 +5,11 @@ {% for camera in template_values['cameras'] %} {% if camera.is_online() %}
-
+
{{ camera.name }}
- +
@@ -21,7 +21,7 @@ {% for camera in template_values['cameras'] %} {% if camera.is_offline() %}
-
+
{{ camera.name }}