43 lines
860 B
HTML
43 lines
860 B
HTML
<!DOCTYPE html>
|
||
<html>
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<title>Cloudflare DDNS Status</title>
|
||
<meta http-equiv="refresh" content="{{ 60 }}">
|
||
<style>
|
||
body { background:#0f1115; color:#eee; font-family:sans-serif; padding:20px }
|
||
table { width:100%; border-collapse:collapse }
|
||
th, td { padding:10px; border-bottom:1px solid #333 }
|
||
.ok { color:#4caf50 }
|
||
.bad { color:#ff5252 }
|
||
</style>
|
||
</head>
|
||
<body>
|
||
|
||
<h2>Cloudflare DDNS – Stato DNS</h2>
|
||
|
||
<table>
|
||
<tr>
|
||
<th>Record</th>
|
||
<th>DNS IP</th>
|
||
<th>IP Pubblico</th>
|
||
<th>Proxy</th>
|
||
<th>Stato</th>
|
||
</tr>
|
||
|
||
{% for r in records %}
|
||
<tr>
|
||
<td>{{ r.name }}</td>
|
||
<td>{{ r.dns_ip }}</td>
|
||
<td>{{ r.public_ip }}</td>
|
||
<td>{{ "ON" if r.proxied else "OFF" }}</td>
|
||
<td class="{{ 'ok' if r.status == 'OK' else 'bad' }}">
|
||
{{ r.status }}
|
||
</td>
|
||
</tr>
|
||
{% endfor %}
|
||
</table>
|
||
|
||
</body>
|
||
</html>
|