2 changed files with 55 additions and 52 deletions
@ -0,0 +1,28 @@ |
|||||
|
<!DOCTYPE html> |
||||
|
<html> |
||||
|
<head> |
||||
|
<meta charset="utf-8"> |
||||
|
<title>Tor Explorer</title> |
||||
|
</head> |
||||
|
<body> |
||||
|
|
||||
|
<header> |
||||
|
<h1>Tor Explorer</h1> |
||||
|
<form> |
||||
|
<label> |
||||
|
Search |
||||
|
<input type="search" name="s" value="{{ req.query.s }}"> |
||||
|
</label> |
||||
|
</form> |
||||
|
</header> |
||||
|
|
||||
|
<main> |
||||
|
{% block main %}{% endblock %} |
||||
|
</main> |
||||
|
|
||||
|
<footer> |
||||
|
<a target="_blank" href="https://github.com/lukechilds/tor-explorer">Source code</a> - <a target="_blank" href="https://github.com/lukechilds/tor-explorer/issues">Report a bug</a> |
||||
|
</footer> |
||||
|
|
||||
|
</body> |
||||
|
</html> |
@ -1,53 +1,28 @@ |
|||||
<!DOCTYPE html> |
{% extends 'index.html' %} |
||||
<html> |
|
||||
<head> |
|
||||
<meta charset="utf-8"> |
|
||||
<title>Tor Explorer</title> |
|
||||
</head> |
|
||||
<body> |
|
||||
|
|
||||
<header> |
{% block main %} |
||||
<h1>Tor Explorer</h1> |
<table> |
||||
<form> |
<thead> |
||||
<label> |
<tr> |
||||
Search |
<th>Nickname</th> |
||||
<input type="search" name="s" value="{{ req.query.s }}"> |
<th>Bandwidth</th> |
||||
</label> |
<th>Uptime</th> |
||||
</form> |
<th>Country</th> |
||||
</header> |
<th>Flags</th> |
||||
|
<th>Type</th> |
||||
<main> |
</tr> |
||||
|
</thead> |
||||
<table> |
<tbody> |
||||
<thead> |
{% for node in nodes %} |
||||
<tr> |
<tr> |
||||
<th>Nickname</th> |
<td><a href="/node/{{ node.fingerprint if node.fingerprint else node.hashed_fingerprint }}">{{ node.nickname }}</a></td> |
||||
<th>Bandwidth</th> |
<td>{{ node.advertised_bandwidth }}</td> |
||||
<th>Uptime</th> |
<td>{{ node.last_restarted if node.running else 'Down' }}</td> |
||||
<th>Country</th> |
<td>{{ node.country_name }}</td> |
||||
<th>Flags</th> |
<td>{{ node.flags }}</td> |
||||
<th>Type</th> |
<td>{{ node.type }}</td> |
||||
</tr> |
</tr> |
||||
</thead> |
{% endfor %} |
||||
<tbody> |
</tbody> |
||||
{% for node in nodes %} |
</table> |
||||
<tr> |
{% endblock %} |
||||
<td><a href="/node/{{ node.fingerprint if node.fingerprint else node.hashed_fingerprint }}">{{ node.nickname }}</a></td> |
|
||||
<td>{{ node.advertised_bandwidth }}</td> |
|
||||
<td>{{ node.last_restarted if node.running else 'Down' }}</td> |
|
||||
<td>{{ node.country_name }}</td> |
|
||||
<td>{{ node.flags }}</td> |
|
||||
<td>{{ node.type }}</td> |
|
||||
</tr> |
|
||||
{% endfor %} |
|
||||
</tbody> |
|
||||
</table> |
|
||||
|
|
||||
</main> |
|
||||
|
|
||||
<footer> |
|
||||
<a target="_blank" href="https://github.com/lukechilds/tor-explorer">Source code</a> - <a target="_blank" href="https://github.com/lukechilds/tor-explorer/issues">Report a bug</a> |
|
||||
</footer> |
|
||||
|
|
||||
</body> |
|
||||
</html> |
|
||||
|
Loading…
Reference in new issue