aboutsummaryrefslogtreecommitdiffstats
path: root/templates/dashboard.html
blob: 029993b229d08bd133f47d4a11a034d3663af139 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{% include "head.html" %}
<div class="content">
  <h1>Dashboard</h1>
  <div class="section">
    <h2>Statistics</h2>
    <p>This node is up since {{ node_startup_time }}</p>
    <p>Database contains {{ num_received_frames }} received frames</p>
  </div>
  <div class="section">
    <h2>Ten most recent packets</h2>
    <ul>
      {% for packet in packets %}
      <li>{{ packet.received_at_iso()|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: #}