Files
cloudflare-ddns-updater/ui/templates/index.html
2025-12-29 12:39:16 +01:00

43 lines
935 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!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 align="center">{{ r.name }}</td>
<td align="center">{{ r.dns_ip }}</td>
<td align="center">{{ r.public_ip }}</td>
<td align="center">{{ "ON" if r.proxied else "OFF" }}</td>
<td align="center" class="{{ 'ok' if r.status == 'OK' else 'bad' }}">
{{ r.status }}
</td>
</tr>
{% endfor %}
</table>
</body>
</html>