forked from Ruderverein-Donau-Linz/rowt
easier handling of external boats, show all in separate category
This commit is contained in:
@ -3,16 +3,10 @@
|
||||
Inputs: boats
|
||||
#}
|
||||
{% macro show_boats() %}
|
||||
{% for amount_seats, grouped_boats in boats | group_by(attribute="cat") %}
|
||||
{% for cat, grouped_boats in boats | group_by(attribute="cat") %}
|
||||
<details>
|
||||
<summary class="font-bold cursor-pointer text-primary-900 dark:text-white border-t p-3 hover:bg-gray-100 dark:hover:bg-primary-950">
|
||||
<span>
|
||||
{% if grouped_boats[0].external %}
|
||||
Vereinsfremde Boote
|
||||
{% else %}
|
||||
{{ grouped_boats[0].cat }}
|
||||
{% endif %}
|
||||
</span>
|
||||
<span>{{ cat }}</span>
|
||||
<small class="text-gray-500 dark:text-gray-100">({{ grouped_boats | length }})</small>
|
||||
</summary>
|
||||
<div class="pb-3">
|
||||
|
Reference in New Issue
Block a user