From c605ffe2f0f4003698b3b5661716f4f69825e730 Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Fri, 12 Jan 2018 17:56:29 +0100 Subject: [PATCH] statistics.html: Show MAC addresses for known gateways in list This shows the VPN and batX addresses. Signed-off-by: Adrian Schmutzler --- ffmap/web/templates/statistics.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ffmap/web/templates/statistics.html b/ffmap/web/templates/statistics.html index 3b64dee..8c5eed0 100644 --- a/ffmap/web/templates/statistics.html +++ b/ffmap/web/templates/statistics.html @@ -137,7 +137,15 @@ {%- for mac, value in gws.items() %} - {{ gws_info[mac]["label"] }} +

{{ gws_info[mac]["label"] }}

+ {%- if gws_info[mac]["gw"] %} +

{{ mac }} + {%- if gws_info[mac]["batmac"] %} + / {{ gws_info[mac]["batmac"] }} + {%- endif %} +

+ {%- endif %} + {{ value["selected"]["online"] or 0 }} / {{ value["others"]["online"] or 0 }} {{ value["selected"]["offline"] or 0 }} / {{ value["others"]["offline"] or 0 }} {{ gws_sum[mac]["routers"] if gws_sum[mac] else 0 }} / {{ value["others"]|sumdict if value["others"] else 0 }}