diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2024-01-07 22:22:51 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2024-01-07 22:22:51 +0100 |
commit | 241622ff7fd612eb521dec8829153851406c5884 (patch) | |
tree | 3d7b17caa99c7b08f01d94fad9cbdca249ff2612 /templates | |
parent | b40299538a73d25d096d8f58f1468cd7f647a3f9 (diff) | |
download | cats-radio-node-241622ff7fd612eb521dec8829153851406c5884.tar.gz cats-radio-node-241622ff7fd612eb521dec8829153851406c5884.tar.bz2 cats-radio-node-241622ff7fd612eb521dec8829153851406c5884.zip |
Store incoming frames in DB and show most recent 10 in dashboard
Diffstat (limited to 'templates')
-rw-r--r-- | templates/dashboard.html | 12 |
1 files changed, 11 insertions, 1 deletions
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" %} <div class=""> - Dashboard! + <h1>Dashboard</h1> + <div> + <h2>Ten most recent packets</h2> + <ul> + {% for packet in packets %} + <li>{{ packet.received_at|e }} <b>{{ packet.from_callsign|e }}-{{ packet.from_ssid|e }}</b> + {% match packet.comment %}{% when Some with (val) %}{{ val|e }}{% when None %}N/A{% endmatch %} + </li> + {% endfor %} + </ul> + </div> </div> {% include "foot.html" %} {# vi:set et sw=2 ts=2: #} |