<td>{% if node.is_tor %}<imgsrc="/static/images/tor.svg"width="15px">{% endif %}{{ node.url }}</td>
<td>
{% if node.available %}
<spanclass="dot glowing-green"></span>
{% else %}
<spanclass="dot glowing-red""></span>
{% endif %}
</td>
<td>{{ node.nettype }}</td>
<td>{{ node.last_height }}</td>
<td>{{ node.datetime_checked | humanize }}</td>
<td>{% for hc in node.healthchecks %}
{% if loop.index > loop.length - 6 %}
<spanclass="dot glowing-{% if hc.health %}green{% else %}red{% endif %}"></span>
{% endif %}
{% endfor %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
<divclass="page-btn">
{% for p in range(1, total_pages + 1) %}
<ahref="/?page={{ p }}"class="pure-button btn {% if p == page %}current-page-btn{% endif %}">{{ p }}</a>
{% endfor %}
</div>
{% else %}
<p>No nodes in the database yet...</p>
{% endif %}
<br>
<divclass="center"id="filters">
<ahref="{% if 'crypto' in request.args %}{{ request.url }}&{% else %}/?{% endif %}nettype=mainnet"><buttonclass="pure-button search-btn">Mainnet</button></a>
<ahref="{% if 'crypto' in request.args %}{{ request.url }}&{% else %}/?{% endif %}nettype=testnet"><buttonclass="pure-button search-btn">Testnet</button></a>
<ahref="{% if 'crypto' in request.args %}{{ request.url }}&{% else %}/?{% endif %}nettype=stagenet"><buttonclass="pure-button search-btn">Stagenet</button></a>
{% if 'onion' not in request.args %}<ahref="{% if 'nettype' in request.args or 'crypto' in request.args %}{{ request.url }}&{% else %}/?{% endif %}onion=true"><buttonclass="pure-button search-btn"><imgsrc="/static/images/tor.svg"width=15px> Onion</button></a>{% endif %}