<html
  xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
  data-namespace-typo3-fluid="true">
  
  <div id="timeslot-{event.calendar.uid}-{event.date->f:format.date(format: '%Y-%m-%d')}-{event.timeslot.uid}" data-index="{it.index}" data-event="{event.uid}"
       class="timeslot{f:if(condition: '{user} && {event} && {event.status} && !{event.isBlocked}', then: ' event-status-{event.status.color}')}{f:if(condition: '(!{user} && {event} && {event.status}) || {event.isBlocked}', then: ' event-status-red')}{f:if(condition: '{event} && !{event.status}', then: ' event-status-normal')}{f:if(condition: event.teammember, then: ' event-teammember')}{f:if(condition: '{user} && {user.uid} == {event.teammember.uid}', then: ' event-my')}{f:if(condition: error,then: ' ajax-error')}">
    <f:if condition="{calendar.calendarType.partial}!='FullCalendar'">
      <f:if condition="{calendar.isDateTimeMode}">
	<f:then>
	  <f:render partial="Calendar/Timeslot/{calendar.calendarType.partial}/Default" arguments="{calendar: calendar, eventClipboard: eventClipboard, date: date}" />
	</f:then>
	<f:else>
	  <f:render partial="Calendar/Timeslot/{calendar.calendarType.partial}/{event.partial}" arguments="{calendar: calendar, event: event, eventClipboard: eventClipboard, date: date}" />
	</f:else>
      </f:if>
    </f:if>
  </div>

</html>
