+Show contents count in /baende list

This commit is contained in:
Simon Martens
2026-01-30 19:39:02 +01:00
parent e7e279aeeb
commit a70cdd6488
9 changed files with 100 additions and 19 deletions

View File

@@ -157,6 +157,14 @@
</a>
<div class="data-tip">Bearbeiten</div>
</tool-tip>
<tool-tip position="top" class="inline">
<a href="/almanach/{{ $entry.MusenalmID }}/contents/edit" onclick="event.stopPropagation();" hx-target="body" class="no-underline inline-flex items-center gap-1 rounded-xs bg-stone-100 px-2 py-1 text-xs font-semibold text-slate-700 hover:bg-stone-200 hover:text-slate-900">
<i class="ri-file-list-3-line"></i>
{{- $count := index $model.result.ContentsCount $entry.Id -}}
<span>{{ if $count }}{{ $count }}{{ else }}0{{ end }}</span>
</a>
<div class="data-tip">Beiträge bearbeiten</div>
</tool-tip>
<tool-tip position="top" class="inline">
<button
type="button"