ui: hide layout for unauthenticated users
This commit is contained in:
@@ -104,6 +104,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body class="bg-background text-neutral-200">
|
<body class="bg-background text-neutral-200">
|
||||||
<div class="flex min-h-screen flex-col">
|
<div class="flex min-h-screen flex-col">
|
||||||
|
{{if .User}}
|
||||||
<div class="sticky top-0 z-50">
|
<div class="sticky top-0 z-50">
|
||||||
{{block "header" .}}
|
{{block "header" .}}
|
||||||
{{template "header" .}}
|
{{template "header" .}}
|
||||||
@@ -124,6 +125,11 @@
|
|||||||
{{template "content" .}}
|
{{template "content" .}}
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
|
{{else}}
|
||||||
|
<main class="w-full flex-1">
|
||||||
|
{{template "content" .}}
|
||||||
|
</main>
|
||||||
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
{{define "title"}}Login{{end}}
|
{{define "title"}}Login{{end}}
|
||||||
{{define "header"}}{{end}}
|
|
||||||
{{define "sidebar"}}{{end}}
|
|
||||||
{{define "content"}}
|
{{define "content"}}
|
||||||
<div class="flex min-h-screen items-center justify-center p-4">
|
<div class="flex min-h-screen items-center justify-center p-4">
|
||||||
<div class="w-full max-w-md">
|
<div class="w-full max-w-md">
|
||||||
|
|||||||
Reference in New Issue
Block a user