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

<cal:calendar.hasPermission calendar="{calendar}" permission="team">
<div class="ig-reservations-legend frame-space-before-small">
    <h3><f:translate key="calendar.legend" /></h3>
    <f:spaceless>
        <div class="ig-reservations-legend-status event-status-normal ig-inline">
            <f:translate key="calendar.legend.free" />
        </div>
        <f:for each="{statusses}" as="status">
            <div class="ig-reservations-legend-status event-status-{status.color} ig-inline">
                {status.name}
            </div>
            <div class="ig-reservations-legend-status event-status-{status.color} event-my ig-inline">
                {status.name} (<f:translate key="calendar.legend.me" />)
            </div>
        </f:for>
    </f:spaceless>
</div>
</cal:calendar.hasPermission>

</html>
