From 87c21d189f042876b544b248ce39e99c16f52b74 Mon Sep 17 00:00:00 2001 From: Jordan Date: Mon, 7 Sep 2020 18:27:57 -0700 Subject: add more sorting options for family and network pages --- tor-metrics/templates/families.html | 47 ------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 tor-metrics/templates/families.html (limited to 'tor-metrics/templates/families.html') diff --git a/tor-metrics/templates/families.html b/tor-metrics/templates/families.html deleted file mode 100644 index cbf8e8b..0000000 --- a/tor-metrics/templates/families.html +++ /dev/null @@ -1,47 +0,0 @@ -{% extends "skeleton.html" %} -{% block title %}Tor Relays :: Families{% endblock %} -{% block body %} -

Home :: Families

-

The set of all relay families with > 1 effective members. The first_seen parameter is taken from the oldest relay in the family.

- - - - - - - - - - {% set processed = dict() %} - {% for k, v in relays.json['sorted']['family'].items()|sort(attribute='1.bw', reverse=True) %} - {% if relays.json['relays'][v['relays'][0]]['fingerprint'] not in processed %} - - {% if v['bw'] > 1000000 %} - {% set obs_bandwidth = '%s %s'|format((v['bw'] / 1000000)|round(2, 'common'), 'MB/s') %} - {% else %} - {% set obs_bandwidth = '%s %s'|format((v['bw'] / 1000)|round(2, 'common'), 'KB/s') %}{% endif %} - - - - - - {% if v['contact'] %} - - {% else %} - {% endif %} - - - - - - - {% for r in v['relays'] %} - {% set _dummy = processed.update({relays.json['relay_subset'][r]['fingerprint']: None}) %} - {% endfor %} - - {% endif %} - {% endfor %} - -
FamilyBandwidthContactExit CountMiddle CountFirst Seen -
{{ k|escape }}{{ obs_bandwidth }}{{ v['contact']|truncate(50)|escape }}none{{ v['exit_count'] }}{{ v['middle_count'] }}{{ v['first_seen'].split(' ', 1)[0]|escape }}
-{% endblock %} -- cgit v1.2.3-54-g00ecf