<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:cal="http://typo3.org/ns/Ig/IgReservations/ViewHelpers" xmlns:ri="http://typo3.org/ns/Ig/IgResponsiveImages/ViewHelpers" xmlns:core="http://typo3.org/ns/TYPO3/CMS/Core/ViewHelpers"
    data-namespace-typo3-fluid="true">

<tr class="calendar-overview-row">
    <f:spaceless>
        <td class="calendar-overview-calendar">
            <div class="calendar-overview-calendar-name"><f:link.page pageUid="{calendar.pageUid}">{calendar.name}</f:link.page></div>
        </td>
        <f:for each="{calendar.eventsForWeek}" as="day">
            <td class="calendar-overview-day calendar-overview-day-entry">
                <f:for each="{day.events}" as="event">
                    <div class="calendar-overview-event" title="{event.startTimeFormat} - {event.endTimeFormat} {f:if(condition: event.name, then: event.name, else: event.purpose)}">
                        <f:if condition="{event.startDate} < {event.endDate}">{event.startDateTime->f:format.date(format: '%a')} </f:if>{event.startTimeFormat} - <f:if condition="{event.startDate} < {event.endDate}">{event.endDateTime->f:format.date(format: '%a')} </f:if>{event.endTimeFormat} <f:link.action pageUid="{settings.unapprovedListPageUid}" controller="Event" pluginName="EventTodo" action="show" arguments="{event: event}">{f:if(condition: event.name, then: event.name, else: event.purpose)}</f:link.action>
                    </div>
                </f:for>
            </td>
        </f:for>
    </f:spaceless>
</tr>

</html>
