fix: cleanup stale teamer pickups
This commit is contained in:
@@ -29,9 +29,16 @@
|
||||
Zustiege
|
||||
</h2>
|
||||
<ul class="pb-4 divide-y divide-gray-200">
|
||||
{% set pickupLabels = [] %}
|
||||
{% for pickup in teamer.pickups %}
|
||||
{% set label = pickup|bpn_pickup_label %}
|
||||
{% if label is not empty %}
|
||||
{% set pickupLabels = pickupLabels|merge([label]) %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% for label in pickupLabels %}
|
||||
<li class="py-2">
|
||||
{{ pickup|bpn_pickup_label }}
|
||||
{{ label }}
|
||||
</li>
|
||||
{% else %}
|
||||
<li class="py-2">
|
||||
|
||||
@@ -141,9 +141,16 @@
|
||||
Buszustiege
|
||||
</h2>
|
||||
<ul class="list-disc pl-4">
|
||||
{% set pickupLabels = [] %}
|
||||
{% for pickup in teamer.pickups %}
|
||||
{% set label = pickup|bpn_pickup_label %}
|
||||
{% if label is not empty %}
|
||||
{% set pickupLabels = pickupLabels|merge([label]) %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% for label in pickupLabels %}
|
||||
<li>
|
||||
{{ pickup|bpn_pickup_label }}
|
||||
{{ label }}
|
||||
</li>
|
||||
{% else %}
|
||||
<li>
|
||||
|
||||
Reference in New Issue
Block a user