cpolis/web/templates/review-article.html

71 lines
2.3 KiB
HTML
Raw Permalink Normal View History

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
<div>
2024-10-27 07:21:36 +01:00
<div class="w-full" id="article-banner-container">
<img src="/image/serve/{{.Image}}" alt="Banner Image">
2024-10-27 07:21:36 +01:00
</div>
<h3>Titel</h3>
<div class="border border-slate-200 dark:border-slate-800 mb-3 px-2 py-2 rounded-md w-full">
{{.Article.Title}}
</div>
<h3>Beschreibung</h3>
<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}}
</div>
<h3>Artikel</h3>
<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}}
</div>
</div>
<h3>Tags</h3>
<div class="border border-slate-200 dark:border-slate-800 mb-3 px-2 py-2 rounded-md w-full">
{{if .Article.IsInIssue}}
<span>Orient Express</span>
<br>
{{end}}
2024-03-28 08:41:38 +01:00
{{range .Tags}}
<span>{{.Name}}</span>
<br>
2024-03-28 08:41:38 +01:00
{{end}}
</div>
<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}}"
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}}
</div>
2024-03-01 11:30:31 +01:00
{{end}}