23 lines
692 B
Twig
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 %}
|