2024-02-24 15:31:33 +01:00
|
|
|
{{define "page-content"}}
|
2024-04-01 14:22:59 +02:00
|
|
|
<div class="flex flex-col gap-4">
|
2024-04-03 20:24:54 +02:00
|
|
|
<button class="btn" hx-get="/logout" hx-target="#page-content">Abmelden</button>
|
2024-04-02 21:35:34 +02:00
|
|
|
|
2024-04-12 08:46:34 +02:00
|
|
|
{{if lt . 4}}
|
2024-04-01 14:22:59 +02:00
|
|
|
<div class="mb-3">
|
|
|
|
<h2>Autor</h2>
|
|
|
|
<div class="grid grid-cols-2 gap-x-4 gap-y-2">
|
2024-08-30 15:42:53 +02:00
|
|
|
<button class="btn" hx-get="/article/write" hx-target="#page-content">Artikel schreiben</button>
|
2024-08-30 15:58:09 +02:00
|
|
|
<button class="btn" hx-get="/article/all-rejected" hx-target="#page-content">Abgelehnte Artikel</button>
|
2024-08-30 15:42:53 +02:00
|
|
|
<button class="btn" hx-get="/user/edit/self" hx-target="#page-content">Profil bearbeiten</button>
|
2024-04-01 14:22:59 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-04-12 08:46:34 +02:00
|
|
|
{{end}}
|
2024-04-02 21:35:34 +02:00
|
|
|
|
2024-04-01 14:22:59 +02:00
|
|
|
{{if lt . 3}}
|
|
|
|
<div class="mb-3">
|
|
|
|
<h2>Redakteur</h2>
|
|
|
|
<div class="grid grid-cols-2 gap-4">
|
2024-08-30 15:42:53 +02:00
|
|
|
<button class="btn" hx-get="/article/all-unpublished" hx-target="#page-content">
|
2024-04-01 14:22:59 +02:00
|
|
|
Unveröffentlichte Artikel
|
|
|
|
</button>
|
2024-08-30 15:42:53 +02:00
|
|
|
<button class="btn" hx-get="/tag/create" hx-target="#page-content">Neuer Tag</button>
|
2024-04-01 14:22:59 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2024-04-02 21:35:34 +02:00
|
|
|
|
2024-04-01 14:22:59 +02:00
|
|
|
{{if lt . 2}}
|
|
|
|
<div class="mb-3">
|
|
|
|
<h2>Herausgeber</h2>
|
|
|
|
<div class="grid grid-cols-2 gap-4">
|
2024-08-30 15:42:53 +02:00
|
|
|
<button class="btn" hx-get="/issue/this" hx-target="#page-content">Diese Ausgabe</button>
|
|
|
|
<button class="btn" hx-get="/article/all-published" hx-target="#page-content">Artikel löschen</button>
|
2024-04-01 14:22:59 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2024-04-02 21:35:34 +02:00
|
|
|
|
2024-04-01 14:22:59 +02:00
|
|
|
{{if eq . 0}}
|
|
|
|
<div class="mb-3">
|
|
|
|
<h2>Administrator</h2>
|
2024-08-30 21:20:29 +02:00
|
|
|
<div class="grid grid-cols-2 gap-x-4 gap-y-2">
|
2024-08-30 15:42:53 +02:00
|
|
|
<button class="btn" hx-get="/user/create" hx-target="#page-content">Benutzer hinzufügen</button>
|
|
|
|
<button class="btn" hx-get="/user/show-all/edit" hx-target="#page-content">Benutzer bearbeiten</button>
|
|
|
|
<button class="btn" hx-get="/user/show-all/delete" hx-target="#page-content">Benutzer löschen</button>
|
2024-04-01 14:22:59 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2024-03-28 08:41:38 +01:00
|
|
|
</div>
|
2024-03-03 09:16:49 +01:00
|
|
|
{{end}}
|