Restructure hub.html to be mor organized
This commit is contained in:
parent
84960fdd44
commit
523ff9d2db
@ -4,49 +4,49 @@
|
|||||||
|
|
||||||
{{if lt . 4}}
|
{{if lt . 4}}
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<h2>Autor</h2>
|
<h2>Artikel</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">
|
||||||
<button class="btn" hx-get="/article/write" hx-target="#page-content">Artikel schreiben</button>
|
<button class="btn" hx-get="/article/write" hx-target="#page-content">Artikel schreiben</button>
|
||||||
<button class="btn" hx-get="/article/all-rejected" hx-target="#page-content">Abgelehnte Artikel</button>
|
<button class="btn" hx-get="/article/all-rejected" hx-target="#page-content">Abgelehnte Artikel</button>
|
||||||
<button class="btn" hx-get="/user/edit/self" hx-target="#page-content">Profil bearbeiten</button>
|
{{if lt . 3}}<button class="btn" hx-get="/article/all-unpublished" hx-target="#page-content">
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{{end}}
|
|
||||||
|
|
||||||
{{if lt . 3}}
|
|
||||||
<div class="mb-3">
|
|
||||||
<h2>Redakteur</h2>
|
|
||||||
<div class="grid grid-cols-2 gap-x-4 gap-y-2">
|
|
||||||
<button class="btn" hx-get="/article/all-unpublished" hx-target="#page-content">
|
|
||||||
Unveröffentlichte Artikel
|
Unveröffentlichte Artikel
|
||||||
</button>
|
</button>{{end}}
|
||||||
<button class="btn" hx-get="/tag/create" hx-target="#page-content">Neuer Tag</button>
|
{{if lt . 2}}<button class="btn" hx-get="/article/all-published" hx-target="#page-content">
|
||||||
|
Artikel löschen
|
||||||
|
</button>{{end}}
|
||||||
|
{{if lt . 3}}<button class="btn" hx-get="/tag/create" hx-target="#page-content">Neuer Tag</button>{{end}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{if lt . 2}}
|
{{if lt . 2}}
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<h2>Herausgeber</h2>
|
<h2>Ausgabe</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">
|
||||||
<button class="btn" hx-get="/issue/this" hx-target="#page-content">Diese Ausgabe</button>
|
<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>
|
|
||||||
<form class="flex" hx-encoding="multipart/form-data">
|
<form class="flex" hx-encoding="multipart/form-data">
|
||||||
<label class="btn text-center" for="pdf-upload">PDF hochladen</label>
|
<label class="btn text-center" for="pdf-upload">PDF hochladen</label>
|
||||||
<input accept=".pdf" class="hidden" id="pdf-upload" name="pdf-upload" type="file"
|
<input accept=".pdf" class="hidden" id="pdf-upload" name="pdf-upload" type="file"
|
||||||
hx-post="/pdf/upload" />
|
hx-post="/pdf/upload" />
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
|
||||||
|
|
||||||
{{if eq . 0}}
|
{{if lt . 4}}
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<h2>Administrator</h2>
|
<h2>Benutzer</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">
|
||||||
<button class="btn" hx-get="/user/create" hx-target="#page-content">Benutzer hinzufügen</button>
|
<button class="btn" hx-get="/user/edit/self" hx-target="#page-content">Mein Profil bearbeiten</button>
|
||||||
<button class="btn" hx-get="/user/show-all/edit" hx-target="#page-content">Benutzer bearbeiten</button>
|
{{if eq . 0}}<button class="btn" hx-get="/user/create" hx-target="#page-content">
|
||||||
<button class="btn" hx-get="/user/show-all/delete" hx-target="#page-content">Benutzer löschen</button>
|
Benutzer hinzufügen
|
||||||
|
</button>{{end}}
|
||||||
|
{{if eq . 0}}<button class="btn" hx-get="/user/show-all/edit" hx-target="#page-content">
|
||||||
|
Benutzer bearbeiten
|
||||||
|
</button>{{end}}
|
||||||
|
{{if eq . 0}}<button class="btn" hx-get="/user/show-all/delete" hx-target="#page-content">
|
||||||
|
Benutzer löschen
|
||||||
|
</button>{{end}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user