cpolis/web/templates/current-articles.html

18 lines
498 B
HTML
Raw Normal View History

2024-03-28 07:00:37 +01:00
{{define "page-content"}}
2024-04-07 18:57:03 +02:00
<h2>Aktuelle Artikel</h2>
2024-04-01 14:22:59 +02:00
<div class="flex flex-col gap-4">
2024-03-28 08:41:38 +01:00
{{range .}}
2024-04-01 14:22:59 +02:00
<div class="border px-2 py-1 rounded-md">
<h1 class="font-bold text-2xl">{{.Title}}</h1>
2024-03-28 08:41:38 +01:00
<p>{{.Description}}</p>
</div>
{{end}}
2024-03-28 07:00:37 +01:00
</div>
2024-03-28 08:41:38 +01:00
2024-04-01 14:22:59 +02:00
<div class="btn-area">
2024-08-30 15:42:53 +02:00
<button class="action-btn" hx-get="/issue/publish" hx-target="#page-content">Ausgabe publizieren</button>
<button class="btn" hx-get="/hub" hx-target="#page-content">Abbrechen</button>
2024-04-01 14:22:59 +02:00
</div>
2024-03-28 07:00:37 +01:00
{{end}}