mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2026-02-04 10:35:30 +00:00
+more filters on /baende endpoint
This commit is contained in:
@@ -101,6 +101,13 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="baende-tbody">
|
||||
{{- if not (len $model.result.Entries) -}}
|
||||
<tr>
|
||||
<td colspan="6" class="py-6 text-center text-sm text-gray-500">
|
||||
Keine Bände gefunden.
|
||||
</td>
|
||||
</tr>
|
||||
{{- end -}}
|
||||
{{- range $_, $entry := $model.result.Entries -}}
|
||||
<tr class="border-b align-top cursor-pointer transition-colors odd:bg-white even:bg-stone-50/60 hover:bg-stone-100"
|
||||
data-role="baende-row"
|
||||
@@ -143,16 +150,16 @@
|
||||
</div>
|
||||
</td>
|
||||
<td class="py-2 pr-4">
|
||||
<div class="font-semibold text-slate-900 text-base leading-snug inline-flex items-center gap-1">
|
||||
<div class="font-semibold text-slate-900 text-base leading-snug">
|
||||
{{- if $entry.PreferredTitle -}}
|
||||
{{ $entry.PreferredTitle }}
|
||||
<span class="inline">{{ $entry.PreferredTitle }}</span>
|
||||
{{- else if ne $entry.Year 0 -}}
|
||||
{{ $entry.Year }}
|
||||
<span class="inline">{{ $entry.Year }}</span>
|
||||
{{- else -}}
|
||||
[o.J.]
|
||||
<span class="inline">[o.J.]</span>
|
||||
{{- end -}}
|
||||
<tool-tip position="top" class="inline-flex items-center">
|
||||
<i class="status-icon {{- if eq $entry.EditState "Edited" }} ri-checkbox-circle-line{{- else if eq $entry.EditState "Seen" }} ri-information-line{{- else if eq $entry.EditState "Review" }} ri-search-line{{- else if eq $entry.EditState "ToDo" }} ri-list-check{{- else }} ri-forbid-2-line{{- end }}" data-status="{{ $entry.EditState }}"></i>
|
||||
<tool-tip position="top" class="inline-block align-middle ml-1">
|
||||
<i class="status-icon align-middle {{- if eq $entry.EditState "Edited" }} ri-checkbox-circle-line{{- else if eq $entry.EditState "Seen" }} ri-information-line{{- else if eq $entry.EditState "Review" }} ri-search-line{{- else if eq $entry.EditState "ToDo" }} ri-list-check{{- else }} ri-forbid-2-line{{- end }}" data-status="{{ $entry.EditState }}"></i>
|
||||
<div class="data-tip">
|
||||
{{- if eq $entry.EditState "Unknown" -}}
|
||||
Gesucht
|
||||
|
||||
Reference in New Issue
Block a user