-
Notifications
You must be signed in to change notification settings - Fork 61
/
pollings.html
39 lines (35 loc) · 1.1 KB
/
pollings.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{% extends './base.html' %}
{% block title %}Pollings{% endblock %}
{% block body %}
<div class="panel panel-default">
<table class='table table-striped' style='text-align: center'>
<thead>
<tr>
<th>#</th>
<th data-localize='time'>Time</th>
<th data-localize='nodes-ok'>Healthy Redis</th>
<th data-localize='nodes-fail'>Unreachable Redis</th>
<th data-localize='proxies-ok'>Healthy Proxy</th>
<th data-localize='proxies-fail'>Unreachable Proxy</th>
</tr>
</thead>
<tbody>
{% for p in pollings %}
<tr>
<td>{{ p.id }}</td>
<td>{{ p.polling_time|strftime }}</td>
<td>{{ p.nodes_ok|length }}</td>
<td>{{ p.nodes_fail|length }}</td>
<td>{{ p.proxies_ok|length }}</td>
<td>{{ p.proxies_fail|length }}</td>
<tr>
{% endfor %}
</tbody>
</table>
</div>
{% block prune %}
<div class='text-center'>
<a class='btn btn-default' href='/prune/list_pollings' data-localize='prune'>Prune</a>
</div>
{% endblock %}
{% endblock %}