mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2026-02-04 18:45:31 +00:00
97 lines
3.3 KiB
Plaintext
97 lines
3.3 KiB
Plaintext
{{ $reihe := index . 0 }}
|
|
{{ $rels := index . 1 }}
|
|
{{ $entries := index . 2 }}
|
|
{{ $shownos := index . 3 }}
|
|
{{ $request := index . 4 }}
|
|
|
|
{{- if $rels -}}
|
|
<div class="reiherelations flex flex-col text-base font-sans w-full pt-1 -ml-3">
|
|
{{- range $_, $rel := $rels -}}
|
|
{{- $bd := index $entries $rel.Entry -}}
|
|
|
|
{{- if $bd -}}
|
|
<div class="flex flex-row odd:bg-zinc-100 px-3 ml-2 py-0.5 justify-between w-full">
|
|
<a href="/almanach/{{ $bd.MusenalmID }}" class="no-underline">
|
|
<div class="{{- if eq $bd.EditState "Edited" -}}font-bold{{- end -}}">
|
|
{{- if $bd.PreferredTitle -}}
|
|
{{ $bd.PreferredTitle }}
|
|
{{- else if ne $bd.Year 0 -}}
|
|
{{- $bd.Year -}}
|
|
{{- else -}}
|
|
[o.J.]
|
|
{{- end -}}
|
|
|
|
{{- if $request.user -}}
|
|
<tool-tip position="right" class="inline">
|
|
<i class="status-icon ml-1 align-middle {{- if eq $bd.EditState "Edited" }} ri-checkbox-circle-line{{- else if eq $bd.EditState "Seen" }} ri-information-line{{- else if eq $bd.EditState "Review" }} ri-search-line{{- else if eq $bd.EditState "ToDo" }} ri-list-check{{- else }} ri-forbid-2-line{{- end }}" data-status="{{ $bd.EditState }}"></i>
|
|
<div class="data-tip">
|
|
{{- if eq $bd.EditState "Unknown" -}}
|
|
Gesucht
|
|
{{- else if eq $bd.EditState "ToDo" -}}
|
|
Zu erledigen
|
|
{{- else if eq $bd.EditState "Review" -}}
|
|
Überprüfen
|
|
{{- else if eq $bd.EditState "Seen" -}}
|
|
Autopsiert
|
|
{{- else if eq $bd.EditState "Edited" -}}
|
|
Vollständig Erfasst
|
|
{{- else -}}
|
|
{{ $bd.EditState }}
|
|
{{- end -}}
|
|
</div>
|
|
</tool-tip>
|
|
{{- else -}}
|
|
{{- if not $bd.TitleStmt -}}
|
|
<tool-tip position="right" class="inline">
|
|
<i class="ri-forbid-2-line"></i>
|
|
<div class="data-tip">Keine nähere Erfassung</div>
|
|
</tool-tip>
|
|
{{- else if eq $bd.EditState "Edited" -}}
|
|
<tool-tip position="right" class="inline">
|
|
<i class="ri-checkbox-circle-line"></i>
|
|
<div class="data-tip">Mit erfassten Beiträgen</div>
|
|
</tool-tip>
|
|
{{- else -}}
|
|
<tool-tip position="right" class="inline">
|
|
<i class="ri-information-line"></i>
|
|
<div class="data-tip">Mit genaueren Titelangaben</div>
|
|
</tool-tip>
|
|
{{- end -}}
|
|
{{- end -}}
|
|
</div>
|
|
{{- if not (eq $rel.Type "Bevorzugter Reihentitel") -}}
|
|
<div class="text-xs whitespace-nowrap">
|
|
{{- if eq $rel.Type "Früherer Reihentitel" -}}
|
|
Titelauflage aus einer anderen Reihe
|
|
{{- else if eq $rel.Type "Späterer Reihentitel" -}}
|
|
Titelauflage
|
|
{{- else if eq $rel.Type "In anderer Sprache" -}}
|
|
{{- if Contains $bd.Language "ger" -}}
|
|
In deutscher Sprache
|
|
{{- else -}}
|
|
In französischer Sprache
|
|
{{- end -}}
|
|
{{- else -}}
|
|
{{ $rel.Type }}
|
|
{{- end -}}
|
|
</div>
|
|
{{- end -}}
|
|
</a>
|
|
<div class="whitespace-nowrap align-top">
|
|
Alm
|
|
{{ $bd.MusenalmID }}
|
|
{{- if (IsAdminOrEditor $request.user) -}}
|
|
<a href="/almanach/{{ $bd.MusenalmID }}/edit/" class="no-underline rounded bg-stone-100 px-1.5">
|
|
<i class="ri-edit-line"></i>
|
|
</a>
|
|
{{- end -}}
|
|
</div>
|
|
|
|
</div>
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|
|
|
|
</div>
|
|
{{- end -}}
|