2024-03-01 11:30:31 +01:00
|
|
|
{{define "page-content"}}
|
2024-09-28 12:17:03 +02:00
|
|
|
<h2>{{.ActionTitle}}</h2>
|
2024-04-07 18:57:03 +02:00
|
|
|
|
2024-04-03 18:08:56 +02:00
|
|
|
<div>
|
2024-10-27 07:21:36 +01:00
|
|
|
<div class="w-full" id="article-banner-container">
|
2024-11-01 16:31:47 +01:00
|
|
|
<img src="/image/serve/{{.Image}}" alt="Banner Image">
|
2024-10-27 07:21:36 +01:00
|
|
|
</div>
|
|
|
|
|
2024-12-27 10:30:15 +01:00
|
|
|
<h3>Titel</h3>
|
2024-09-09 22:03:03 +02:00
|
|
|
<div class="border border-slate-200 dark:border-slate-800 mb-3 px-2 py-2 rounded-md w-full">
|
2024-09-01 18:18:07 +02:00
|
|
|
{{.Article.Title}}
|
2024-04-03 18:08:56 +02:00
|
|
|
</div>
|
|
|
|
|
2024-12-27 10:30:15 +01:00
|
|
|
<h3>Beschreibung</h3>
|
2024-09-09 22:03:03 +02:00
|
|
|
<div class="border border-slate-200 dark:border-slate-800 mb-3 px-2 py-2 rounded-md w-full">
|
2024-10-27 07:20:23 +01:00
|
|
|
{{.Article.Summary}}
|
2024-04-03 18:08:56 +02:00
|
|
|
</div>
|
2024-03-17 08:46:49 +01:00
|
|
|
|
2024-12-27 10:30:15 +01:00
|
|
|
<h3>Artikel</h3>
|
2024-09-09 22:03:03 +02:00
|
|
|
<div class="border border-slate-200 dark:border-slate-800 mb-3 px-2 py-2 rounded-md w-full">
|
2024-09-28 12:17:03 +02:00
|
|
|
<div class="prose text-slate-900 dark:text-slate-100">
|
|
|
|
{{.HTMLContent}}
|
2024-04-03 18:08:56 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2024-12-27 10:30:15 +01:00
|
|
|
<h3>Tags</h3>
|
2024-09-09 22:03:03 +02:00
|
|
|
<div class="border border-slate-200 dark:border-slate-800 mb-3 px-2 py-2 rounded-md w-full">
|
2024-09-01 18:18:07 +02:00
|
|
|
{{if .Article.IsInIssue}}
|
|
|
|
<span>Orient Express</span>
|
|
|
|
<br>
|
|
|
|
{{end}}
|
2024-03-28 08:41:38 +01:00
|
|
|
{{range .Tags}}
|
2024-09-01 18:18:07 +02:00
|
|
|
<span>{{.Name}}</span>
|
2024-04-03 18:08:56 +02:00
|
|
|
<br>
|
2024-03-28 08:41:38 +01:00
|
|
|
{{end}}
|
2024-04-03 18:08:56 +02:00
|
|
|
</div>
|
2024-03-17 08:46:49 +01:00
|
|
|
|
2024-12-27 10:30:15 +01:00
|
|
|
<h3>Autoren</h3>
|
|
|
|
<div class="border border-slate-200 dark:border-slate-800 mb-3 px-2 py-2 rounded-md w-full">
|
|
|
|
{{range .Authors}}
|
|
|
|
<span>{{.FirstName}} {{.LastName}}</span>
|
|
|
|
<br>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h3>Mitwirkende</h3>
|
|
|
|
<div class="border border-slate-200 dark:border-slate-800 mb-3 px-2 py-2 rounded-md w-full">
|
|
|
|
{{range .Contributors}}
|
|
|
|
<span>{{.FirstName}} {{.LastName}}</span>
|
|
|
|
<br>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
|
2024-09-28 12:17:03 +02:00
|
|
|
{{if eq .Action "publish"}}
|
2024-09-10 19:43:01 +02:00
|
|
|
<div class="btn-area-3">
|
2024-09-28 12:17:03 +02:00
|
|
|
<input class="action-btn" type="submit" value="{{.ActionButton}}" hx-get="/article/{{.Action}}/{{.Article.ID}}"
|
2024-09-01 18:18:07 +02:00
|
|
|
hx-target="#page-content" />
|
|
|
|
<input class="btn" type="submit" value="Ablehnen" hx-get="/article/reject/{{.Article.ID}}"
|
2024-04-01 14:22:59 +02:00
|
|
|
hx-target="#page-content" />
|
2024-09-28 12:17:03 +02:00
|
|
|
<button class="btn" hx-get="/hub" hx-target="#page-content">Abbrechen</button>
|
2024-04-01 14:22:59 +02:00
|
|
|
</div>
|
2024-09-28 12:17:03 +02:00
|
|
|
{{else}}
|
|
|
|
<div class="btn-area">
|
|
|
|
<input class="action-btn" type="submit" value="{{.ActionButton}}" hx-get="/article/{{.Action}}/{{.Article.ID}}"
|
|
|
|
hx-target="#page-content" />
|
|
|
|
<button class="btn" hx-get="/hub" hx-target="#page-content">Abbrechen</button>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2024-04-03 18:08:56 +02:00
|
|
|
</div>
|
2024-03-01 11:30:31 +01:00
|
|
|
{{end}}
|