puts more context/detail around totals/failed

This commit is contained in:
lza_menace 2021-03-07 01:45:52 -08:00
parent 1f932f880c
commit d519553809
2 changed files with 4 additions and 0 deletions

View File

@ -49,6 +49,8 @@ def index():
return render_template(
"index.html",
nodes=nodes,
nodes_healthy=[n for n in nodes if n.available],
nodes_unhealthy=[n for n in nodes if not n.available],
form=form
)

View File

@ -40,6 +40,8 @@
<br>
{% if nodes %}
<div class="xmrnodes">
<p class="center">Currently tracking {{ nodes | length }} nodes in the database. Of those, {{ nodes_unhealthy | length }} nodes failed their last check-in.</p>
<br>
<table class="pure-table pure-table-horizontal pure-table-striped">
<thead>
<tr>