show destination messages in pretty ways

This commit is contained in:
Laura Klünder 2023-10-04 22:41:02 +02:00
parent e0c9f36c66
commit 6c747803b7

View file

@ -57,6 +57,15 @@
{% elif msg.get_message_type_display == "CONFIG_POSITION" %}
<strong>X=</strong>{{ msg.parsed.x_pos }}, <strong>Y=</strong>{{ msg.parsed.y_pos }}, <strong>Z=</strong>{{ msg.parsed.z_pos }}
{% elif msg.get_message_type_display == "MESH_ADD_DESTINATIONS" or msg.get_message_type_display == "MESH_REMOVE_DESTINATIONS" %}
<strong>mac adresses:</strong><br>
<ul style="margin: 0;">
{% for address in msg.parsed.mac_addresses %}
<li style="margin: 0;">{{ address }}</li>
{% endfor %}
</ul>
{% else %}
{% for key, value in msg.data.items %}
{% if key != "src" and key != "dst" and key != "msg_id" %}