puts more context/detail around totals/failed

levin
lza_menace 4 years ago
parent 1f932f880c
commit d519553809

@ -49,6 +49,8 @@ def index():
return render_template( return render_template(
"index.html", "index.html",
nodes=nodes, 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 form=form
) )

@ -40,6 +40,8 @@
<br> <br>
{% if nodes %} {% if nodes %}
<div class="xmrnodes"> <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"> <table class="pure-table pure-table-horizontal pure-table-striped">
<thead> <thead>
<tr> <tr>

Loading…
Cancel
Save