Skip to content

Commit

Permalink
Nodes: table fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinelliott committed Jul 7, 2024
1 parent aa4d64a commit 368186a
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions templates/static/nodes.html.j2
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<th>Hardware</th>
<th colspan=4>Last Position</th>
<th>Neighbors</th>
<th colspan=3>Telemetry</th>
<th colspan=4>Telemetry</th>
<th colspan=1>Seen</th>
</tr>
<tr bgcolor=lightgray>
Expand All @@ -30,13 +30,16 @@
<th>DX</th>
<th>Count</th>
<th>
<img src="images/icons/battery.png" class="w-4 h-4 inline-block" alt="Battery" title="Battery">
<img src="images/icons/battery.svg" class="w-4 h-4 inline-block" alt="Battery" title="Battery">
</th>
<th>
<img src="images/icons/voltage.png" class="w-4 h-4 inline-block" alt="Voltage" title="Voltage">
<img src="images/icons/voltage.svg" class="w-4 h-4 inline-block" alt="Voltage" title="Voltage">
</th>
<th>
<img src="images/icons/down.png" class="w-4 h-4 inline-block" alt="Channel Util" title="Channel Util">
<img src="images/icons/up.svg" alt="Air Util TX" class="w-4 h-4 inline-block" title="Air Util TX">
</th>
<th>
<img src="images/icons/down.svg" class="w-4 h-4 inline-block" alt="Channel Util" title="Channel Util">
</th>
<th>Since</th>
</tr>
Expand Down Expand Up @@ -97,6 +100,11 @@
{{ node.telemetry.voltage|round(2) }}V
{% endif %}
</td>
<td align=right>
{% if 'air_util_tx' in node.telemetry %}
{{ node.telemetry.air_util_tx|round(1) }}%
{% endif %}
</td>
<td align=right>
{% if 'channel_utilization' in node.telemetry %}
{{ node.telemetry.channel_utilization|round(1) }}%
Expand All @@ -106,6 +114,7 @@
<td></td>
<td></td>
<td></td>
<td></td>
{% endif %}
<td align=right title="{{ node.last_seen_human }}">{{ node.since.seconds }} secs</td>
</tr>
Expand Down

0 comments on commit 368186a

Please sign in to comment.