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


  <f:if condition="{showAssignLinks}">
    <f:then>
      <f:link.action class="button" title="Eintrag in Kalender ansehen" pluginName="PublicCalendar" controller="Calendar" action="show" pageUid="{event.calendar.pageUid}" arguments="{search: {date: '{event.startDate->f:format.date(format: \'Y-m-d\')}' }}"><core:icon identifier="actions-calendar" size="small" alternativeMarkupIdentifier="inline" /></f:link.action>
    </f:then>
    <f:else>
      <cal:calendar.hasPermission calendar="{calendar}" permission="read">
	<f:then>
	</f:then>
	<f:else>
	  <f:link.action class="button" title="Eintrag anzeigen" pluginName="EventTodo" controller="Event" action="show" pageUid="{settings.unapprovedListPageUid}" arguments="{event: event}"><core:icon identifier="actions-view" size="small" alternativeMarkupIdentifier="inline" /></f:link.action>
	</f:else>
      </cal:calendar.hasPermission>
    </f:else>
  </f:if>

</html>
