Files
cloudflare-ddns-updater/ui/templates/index.html
Francesco Picone e93b25ee20 Add Web UI
2025-12-29 11:58:31 +01:00

43 lines
860 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>{{ 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>