aboutsummaryrefslogtreecommitdiff
path: root/tor-metrics/templates/base.html
diff options
context:
space:
mode:
Diffstat (limited to 'tor-metrics/templates/base.html')
-rw-r--r--tor-metrics/templates/base.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/tor-metrics/templates/base.html b/tor-metrics/templates/base.html
index 697418f..a3f4560 100644
--- a/tor-metrics/templates/base.html
+++ b/tor-metrics/templates/base.html
@@ -37,9 +37,10 @@
{% 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 %}
<td>{{ relay['nickname'] }} (<a href="{{ path_prefix }}family/{{ relay['effective_family'][0] }}/">{{ relay['effective_family']|length }}</a>)</td>
{% else %}
- <td>{{ relay['nickname'] }}</td>{% endif %}
+ <td>{{ relay['nickname'] }}</td>{% endif %}{% endif %}
<td>{{ obs_bandwidth }}</td>
<td class="visible-md visible-lg">{{ relay['or_addresses'][0].split(':', 1)[0] }}</td>