From 55031ad71166d023500c7d545658e8adb921e413 Mon Sep 17 00:00:00 2001 From: Pablo Revilla Date: Thu, 13 Feb 2025 22:57:48 -0800 Subject: [PATCH] Made the conversation section a bit more modern looking --- meshview/templates/chat.html | 10 ++++++++-- meshview/templates/net.html | 18 ++++++++++++++---- meshview/templates/net_packet.html | 14 ++++++-------- meshview/templates/stats.html | 6 +++--- 4 files changed, 31 insertions(+), 17 deletions(-) diff --git a/meshview/templates/chat.html b/meshview/templates/chat.html index 48eb783..821f601 100644 --- a/meshview/templates/chat.html +++ b/meshview/templates/chat.html @@ -5,11 +5,17 @@ min-width:10em; } .chat-packet:nth-of-type(odd){ - background-color:#1f1f1f; + background-color: #3a3a3a; /* Lighter than #2a2a2a */ +} +.chat-packet { + border-bottom: 1px solid #555; + padding: 8px; + border-radius: 8px; /* Adjust the value to make the corners more or less rounded */ } .chat-packet:nth-of-type(even){ - background-color:#181818; + background-color: #333333; /* Slightly lighter than the previous #181818 */ } + {% endblock %} diff --git a/meshview/templates/net.html b/meshview/templates/net.html index c6f63e6..b16e0db 100644 --- a/meshview/templates/net.html +++ b/meshview/templates/net.html @@ -5,18 +5,28 @@ min-width:10em; } .chat-packet:nth-of-type(odd){ - background-color:#1f1f1f; + background-color: #3a3a3a; /* Lighter than #2a2a2a */ +} +.chat-packet { + border-bottom: 1px solid #555; + padding: 8px; + border-radius: 8px; /* Adjust the value to make the corners more or less rounded */ } .chat-packet:nth-of-type(even){ - background-color:#181818; + background-color: #333333; /* Slightly lighter than the previous #181818 */ } + {% endblock %} {% block body %} -
+ +
Weekly Mesh check-in. We will keep it open on every Wednesday from 5:00pm for checkins so you do not have to rush.
+ The message format should be (LONG NAME) - (CITY YOU ARE IN) #BayMeshNet.

+
+
{% for packet in packets %} - {% include 'net_packet.html' %} + {% include 'chat_packet.html' %} {% else %} No packets found. {% endfor %} diff --git a/meshview/templates/net_packet.html b/meshview/templates/net_packet.html index 3a06039..9a6d833 100644 --- a/meshview/templates/net_packet.html +++ b/meshview/templates/net_packet.html @@ -1,8 +1,6 @@ -
-
- {{packet.from_node.long_name}} -
-
-
{{packet.import_time.strftime('%-I:%M:%S %p - %d-%m-%Y')}} - {{packet.payload}}
-
-
+
+ {{packet.import_time.strftime('%-I:%M:%S %p - %d-%m-%Y')}} + ✉️ {{packet.from_node.channel}} + {{packet.from_node.long_name or (packet.from_node_id | node_id_to_hex) }} + {{packet.payload}} +
\ No newline at end of file diff --git a/meshview/templates/stats.html b/meshview/templates/stats.html index 0770699..aca49cf 100644 --- a/meshview/templates/stats.html +++ b/meshview/templates/stats.html @@ -16,14 +16,14 @@

- Total Nodes (Last 24 hours): + Total Active Nodes (Last 24 hours): {{ total_nodes }}

- Total Nodes LongFast: + Total Active Nodes LongFast:
{{ total_nodes_longfast }} ({{ (total_nodes_longfast / total_nodes * 100) | round(2) }}%) @@ -33,7 +33,7 @@

- Total Nodes MediumSlow: + Total Active Nodes MediumSlow:
{{ total_nodes_mediumslow }} ({{ (total_nodes_mediumslow / total_nodes * 100) | round(2) }}%)