mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2026-02-04 10:35:30 +00:00
new places
This commit is contained in:
37
views/routes/orte/body.gohtml
Normal file
37
views/routes/orte/body.gohtml
Normal file
@@ -0,0 +1,37 @@
|
||||
{{ $model := . }}
|
||||
|
||||
<div class="container-normal mt-6">
|
||||
<div class="flex items-end justify-between gap-6 border-b border-zinc-300 pb-2">
|
||||
<h1 class="text-3xl font-bold">Orte</h1>
|
||||
{{- if (IsAdminOrEditor $model.request.user) -}}
|
||||
<a href="/orte/new/" class="inline-flex items-center gap-2 text-sm font-bold text-gray-700 hover:text-slate-950 no-underline">
|
||||
<i class="ri-add-line"></i>
|
||||
<span>Neu</span>
|
||||
</a>
|
||||
{{- end -}}
|
||||
</div>
|
||||
|
||||
<div class="mt-6 font-serif">
|
||||
{{- if $model.result.Places -}}
|
||||
<ul class="flex flex-col gap-2 pl-0 pr-0 m-0 list-none">
|
||||
{{- range $place := $model.result.Places -}}
|
||||
<li class="flex items-baseline justify-between gap-4">
|
||||
<div class="flex flex-col">
|
||||
<span class="font-bold text-slate-900">{{ $place.Name }}</span>
|
||||
{{- if $place.Pseudonyms -}}
|
||||
<span class="text-sm text-gray-600 italic">{{ $place.Pseudonyms }}</span>
|
||||
{{- end -}}
|
||||
</div>
|
||||
{{- if (IsAdminOrEditor $model.request.user) -}}
|
||||
<a href="/ort/{{ $place.Id }}/edit" class="text-sm font-bold text-gray-700 hover:text-slate-950 no-underline">
|
||||
<i class="ri-edit-line"></i> Bearbeiten
|
||||
</a>
|
||||
{{- end -}}
|
||||
</li>
|
||||
{{- end -}}
|
||||
</ul>
|
||||
{{- else -}}
|
||||
<p>Keine Orte gefunden.</p>
|
||||
{{- end -}}
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user