mirror of
https://tangled.org/evan.jarrett.net/at-container-registry
synced 2026-04-21 00:50:29 +00:00
53 lines
1.4 KiB
HTML
53 lines
1.4 KiB
HTML
{{define "admin-layout"}}
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
{{template "admin-head"}}
|
|
<title>{{.Title}} - Hold Admin</title>
|
|
</head>
|
|
<body class="min-h-screen flex flex-col bg-base-200">
|
|
{{template "nav" .}}
|
|
|
|
<div class="flex-1 flex">
|
|
{{template "admin-sidebar" .}}
|
|
|
|
<main class="flex-1 min-w-0">
|
|
<div class="max-w-480 mx-auto px-6 pt-6 pb-6">
|
|
{{if .Flash}}
|
|
<div role="alert" class="alert alert-{{.Flash.Category}} mb-4">
|
|
<span>{{.Flash.Message}}</span>
|
|
</div>
|
|
{{end}}
|
|
|
|
{{block "page-header" .}}{{end}}
|
|
|
|
{{template "admin-sidebar-mobile" .}}
|
|
|
|
{{block "page-content" .}}{{end}}
|
|
</div>
|
|
</main>
|
|
</div>
|
|
|
|
<footer class="text-center p-6 text-base-content/50 text-sm">
|
|
<p>Hold: <code class="font-mono">{{.HoldDID}}</code></p>
|
|
</footer>
|
|
|
|
{{if .ActivePage}}
|
|
<script>
|
|
(function() {
|
|
var active = "{{.ActivePage}}";
|
|
var li = document.querySelector('.menu li[data-tab="' + active + '"]');
|
|
if (li) li.classList.add('menu-active');
|
|
document.querySelectorAll('.admin-tab-mobile').forEach(function(a) {
|
|
if (a.dataset.tab === active) {
|
|
a.classList.remove('btn-ghost');
|
|
a.classList.add('btn-secondary');
|
|
}
|
|
});
|
|
})();
|
|
</script>
|
|
{{end}}
|
|
</body>
|
|
</html>
|
|
{{end}}
|