show destination messages in pretty ways
This commit is contained in:
parent
e0c9f36c66
commit
6c747803b7
1 changed files with 9 additions and 0 deletions
|
@ -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" %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue