Files
unifi-adblocker/templates/base.html
T

34 lines
1.6 KiB
HTML

<!DOCTYPE html>
<html lang="en" class="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ .AppName }}</title>
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3crect x='4' y='6' width='24' height='20' fill='%23fff' stroke='%23000'/%3e%3cline x1='8' y1='10' x2='24' y2='10'/%3e%3cline x1='8' y1='14' x2='20' y2='14'/%3e%3cline x1='8' y1='18' x2='24' y2='18'/%3e%3cline x1='8' y1='22' x2='16' y2='22'/%3e%3c/svg%3e">
<link href="/static/tailwind.css" rel="stylesheet">
</head>
<body class="bg-gray-900 text-gray-100 min-h-screen flex flex-col">
{{ template "notifications" . }}
<header class="bg-gray-800 p-4 fixed top-0 w-full z-10">
<nav class="flex justify-between">
<a href="/" class="text-xl font-bold">{{ .AppName }}</a>
{{ if .Authenticated }}
<ul class="flex space-x-4">
<li><a href="/urllists">URL Lists</a></li>
<li><a href="/domains">Blocked Domains</a></li>
<li><a href="/whitelist">Whitelisted Domains</a></li>
<li><a href="/logs">Logs</a></li>
<li><a href="/profile">Profile</a></li>
<li><a href="/logout">Logout</a></li>
</ul>
{{ end }}
</nav>
</header>
<main class="flex-grow container mx-auto p-4 pt-20">
{{ block "content" . }}{{ end }}
</main>
<footer class="bg-gray-800 p-4 text-center">
&copy; 2025 {{ .AppName }}
</footer>
</body>
</html>