Only show logout button in hub
This commit is contained in:
		@@ -1,5 +1,7 @@
 | 
				
			|||||||
{{define "page-content"}}
 | 
					{{define "page-content"}}
 | 
				
			||||||
<div class="flex flex-col gap-4">
 | 
					<div class="flex flex-col gap-4">
 | 
				
			||||||
 | 
					    <button class="btn" hx-get="/logout/" hx-target="#page-content">Abmelden</button>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <div class="mb-3">
 | 
					    <div class="mb-3">
 | 
				
			||||||
        <h2>Autor</h2>
 | 
					        <h2>Autor</h2>
 | 
				
			||||||
        <div class="grid grid-cols-2 gap-x-4 gap-y-2">
 | 
					        <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>
 | 
					            <button class="btn" hx-get="/edit-user/" hx-target="#page-content">Benutzer bearbeiten</button>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    {{if lt . 3}}
 | 
					    {{if lt . 3}}
 | 
				
			||||||
    <div class="mb-3">
 | 
					    <div class="mb-3">
 | 
				
			||||||
        <h2>Redakteur</h2>
 | 
					        <h2>Redakteur</h2>
 | 
				
			||||||
@@ -20,6 +23,7 @@
 | 
				
			|||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    {{end}}
 | 
					    {{end}}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    {{if lt . 2}}
 | 
					    {{if lt . 2}}
 | 
				
			||||||
    <div class="mb-3">
 | 
					    <div class="mb-3">
 | 
				
			||||||
        <h2>Herausgeber</h2>
 | 
					        <h2>Herausgeber</h2>
 | 
				
			||||||
@@ -28,6 +32,7 @@
 | 
				
			|||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    {{end}}
 | 
					    {{end}}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    {{if eq . 0}}
 | 
					    {{if eq . 0}}
 | 
				
			||||||
    <div class="mb-3">
 | 
					    <div class="mb-3">
 | 
				
			||||||
        <h2>Administrator</h2>
 | 
					        <h2>Administrator</h2>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -11,7 +11,6 @@
 | 
				
			|||||||
<body class="flex flex-col justify-between min-h-[100dvh] bg-slate-50">
 | 
					<body class="flex flex-col justify-between min-h-[100dvh] bg-slate-50">
 | 
				
			||||||
    <header class="my-8">
 | 
					    <header class="my-8">
 | 
				
			||||||
        <h1 class="font-bold text-4xl text-center">Orient Editor</h1>
 | 
					        <h1 class="font-bold text-4xl text-center">Orient Editor</h1>
 | 
				
			||||||
        <button class="btn" hx-get="logout" hx-target="#page-content">Abmelden</button>
 | 
					 | 
				
			||||||
    </header>
 | 
					    </header>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <main class="mx-4">
 | 
					    <main class="mx-4">
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user