feat(been): group duplicate venues in list, show visit count

This commit is contained in:
svemagie
2026-03-20 22:09:10 +01:00
parent 4cc002795f
commit c8d97946c2
+6 -1
View File
@@ -60,8 +60,10 @@ leafletMap: true
{% endif %}
{% if checkins.length %}
{% set grouped = checkins | groupby("name") %}
<ul class="divide-y divide-surface-200 dark:divide-surface-700" aria-label="Past check-ins">
{% for checkin in checkins %}
{% for group in grouped %}
{% set checkin = group.list[0] %}
<li class="py-3">
<div class="font-medium text-surface-900 dark:text-surface-100">
{% if checkin.venueWebsiteUrl %}
@@ -69,6 +71,9 @@ leafletMap: true
{% else %}
{{ checkin.name }}
{% endif %}
{% if group.list | length > 1 %}
<span class="ml-2 text-xs font-normal text-surface-500 dark:text-surface-400">{{ group.list | length }}×</span>
{% endif %}
{% if checkin.isPrivate %}<span class="ml-2 text-xs text-amber-700 dark:text-amber-400">(private)</span>{% endif %}
</div>
<div class="text-sm text-surface-600 dark:text-surface-400 mt-0.5">