From 241622ff7fd612eb521dec8829153851406c5884 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 7 Jan 2024 22:22:51 +0100 Subject: Store incoming frames in DB and show most recent 10 in dashboard --- templates/dashboard.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/dashboard.html b/templates/dashboard.html index b2cc5f4..be176c4 100644 --- a/templates/dashboard.html +++ b/templates/dashboard.html @@ -1,6 +1,16 @@ {% include "head.html" %}
- Dashboard! +

Dashboard

+
+

Ten most recent packets

+
    + {% for packet in packets %} +
  • {{ packet.received_at|e }} {{ packet.from_callsign|e }}-{{ packet.from_ssid|e }} + {% match packet.comment %}{% when Some with (val) %}{{ val|e }}{% when None %}N/A{% endmatch %} +
  • + {% endfor %} +
+
{% include "foot.html" %} {# vi:set et sw=2 ts=2: #} -- cgit v1.2.3