From 3d1334dae82179e132cd6ea1cdd3d7a986af965e Mon Sep 17 00:00:00 2001 From: Jordan Date: Wed, 16 Sep 2020 16:45:16 -0700 Subject: fix status circle display in Tor Browser (use CSS instead of entity) --- tor-metrics/templates/relay-list.html | 4 ++-- tor-metrics/templates/skeleton.html | 22 +++++++++++++++++----- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/tor-metrics/templates/relay-list.html b/tor-metrics/templates/relay-list.html index ada0b2b..4281fef 100644 --- a/tor-metrics/templates/relay-list.html +++ b/tor-metrics/templates/relay-list.html @@ -28,9 +28,9 @@ {% set obs_bandwidth = '%s %s'|format((relay['observed_bandwidth'] / 1000)|round(2, 'common'), 'KB/s') %}{% endif %} {% if relay['running'] %} - ⚫ + {% else %} - ⚫ + {% endif %} {% if key != 'family' and relay['effective_family']|length > 1 %} diff --git a/tor-metrics/templates/skeleton.html b/tor-metrics/templates/skeleton.html index bfc2dc9..d236def 100644 --- a/tor-metrics/templates/skeleton.html +++ b/tor-metrics/templates/skeleton.html @@ -7,13 +7,25 @@ - +