mirror of
https://tangled.org/evan.jarrett.net/at-container-registry
synced 2026-04-23 01:40:34 +00:00
38 lines
1.3 KiB
HTML
38 lines
1.3 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" hx-headers='{"X-CSRF-Token": "{{.CSRFToken}}"}'>
|
|
<a href="#main-content" class="sr-only focus:not-sr-only focus:absolute focus:top-2 focus:left-2 focus:z-50 focus:bg-primary focus:text-primary-content focus:px-3 focus:py-2 focus:rounded">Skip to main content</a>
|
|
|
|
{{template "nav" .}}
|
|
|
|
<div class="flex-1 flex">
|
|
{{template "admin-sidebar" .}}
|
|
|
|
<main id="main-content" tabindex="-1" class="flex-1 min-w-0">
|
|
<div class="max-w-480 mx-auto px-6 pt-6 pb-6">
|
|
{{if .Flash}}
|
|
<div role="{{if eq .Flash.Category "error"}}alert{{else}}status{{end}}"
|
|
aria-live="{{if eq .Flash.Category "error"}}assertive{{else}}polite{{end}}"
|
|
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>
|
|
|
|
</body>
|
|
</html>
|
|
{{end}}
|