Only show logout button in hub

This commit is contained in:
2024-04-02 21:35:34 +02:00
parent 717f1c813b
commit c74bdeba72
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,7 @@
{{define "page-content"}}
<div class="flex flex-col gap-4">
<button class="btn" hx-get="/logout/" hx-target="#page-content">Abmelden</button>
<div class="mb-3">
<h2>Autor</h2>
<div class="grid grid-cols-2 gap-x-4 gap-y-2">
@ -9,6 +11,7 @@
<button class="btn" hx-get="/edit-user/" hx-target="#page-content">Benutzer bearbeiten</button>
</div>
</div>
{{if lt . 3}}
<div class="mb-3">
<h2>Redakteur</h2>
@ -20,6 +23,7 @@
</div>
</div>
{{end}}
{{if lt . 2}}
<div class="mb-3">
<h2>Herausgeber</h2>
@ -28,6 +32,7 @@
</div>
</div>
{{end}}
{{if eq . 0}}
<div class="mb-3">
<h2>Administrator</h2>