This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
cardiffbjj.co.uk/source/_partials/class-list.html.twig
2018-07-21 22:51:34 +01:00

23 lines
692 B
Twig

{% for day in ['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday'] %}
{% set items = [] %}
{% for class in classes[day] if class.type == type %}
{% set items = items|merge([class]) %}
{% endfor %}
{% if items %}
<div class="{{ not loop.last ? 'mb-6' }}">
<h3 class="mb-2">{{ day|capitalize }}</h3>
<ul class="list-reset ml-8 md:ml-16">
{% for item in items %}
<li>
{{ item.time }} -
{{ item.description }}
</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% endfor %}