<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">
<cal:calendar.hasPermission calendar="{event.calendar}" permission="admin,team">
  <f:if condition="{event.status.needsAction}">
    <f:then>
      <f:link.action class="link-button" pageUid="{settings.unapprovedListPageUid}" action="confirm" controller="Event" pluginName="EventTodo" arguments="{event: event}">
        <span class="label"><f:translate key="confirm" /></span>
      </f:link.action><br />
    </f:then>
    <f:else>
      <f:link.action class="link-button" pageUid="{settings.unapprovedListPageUid}" action="unapprove" controller="Event" arguments="{event: event}">
        <span class="label"><f:translate key="confirm-abort" /></span>
      </f:link.action><br />
    </f:else>
  </f:if>
  <f:link.email email="{settings.coordinationPersonMail}">
    <f:translate key="events.mail_to_coordination_person" />
  </f:link.email>
</cal:calendar.hasPermission>
</html>
