Use sessionInSlot function

This commit is contained in:
Oliver Davies 2019-05-23 01:06:46 +01:00
parent 2dce6d172a
commit e27d299940

View file

@ -4,9 +4,15 @@
<ul class="tw-list-reset tw-overflow-hidden">
{% for slot in slots %}
{% set session = sessionInSlot(slot.id, sessions) %}
<li class="tw-pt-4 lg:tw-pt-6 {{ loop.last ?: 'tw-pb-4 lg:tw-pb-6 tw-border-solid tw-border-0 tw-border-b tw-border-purple-400' }}">
<span class="tw-flex tw-items-center tw-justify-between tw--mx-6">
<span class="tw-px-6 tw-text-gray-200 tw-flex-1 tw-text-left">{{ slot.label }}</span>
<span class="tw-px-6 tw-text-gray-200 tw-flex-1 tw-text-left">
<span class="tw-block">{{ session.title|default(slot.label)|default('TBA') }}</span>
{% if session.speakers %}
<span class="tw-block tw-mt-1">{{ session.speakers|join(', ') }}</span>
{% endif %}
</span>
<span class="tw-px-6 tw-font-semibold">{{ slot.time }}</span>
</span>
</li>