From 18648ffc8aa6e5a561358fc822cde752dc593cea Mon Sep 17 00:00:00 2001 From: Jordan Date: Tue, 25 Jun 2019 23:35:39 -0700 Subject: use single conditional when checking member count --- tor-metrics/templates/base.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tor-metrics/templates/base.html b/tor-metrics/templates/base.html index a3f4560..4f75ab1 100644 --- a/tor-metrics/templates/base.html +++ b/tor-metrics/templates/base.html @@ -36,11 +36,10 @@ {% else %} {% set obs_bandwidth = '%s %s'|format((relay['observed_bandwidth'] / 1000)|round(2, 'common'), 'KB/s') %}{% endif %} - {% if category != 'family' %} - {% if relay['effective_family']|length > 1 %} + {% if category != 'family' and relay['effective_family']|length > 1 %} {{ relay['nickname'] }} ({{ relay['effective_family']|length }}) {% else %} - {{ relay['nickname'] }}{% endif %}{% endif %} + {{ relay['nickname'] }}{% endif %} {{ obs_bandwidth }} {{ relay['or_addresses'][0].split(':', 1)[0] }} -- cgit v1.2.3-54-g00ecf