if (count($slot->bookings) === 0 || !($slot->block->show_participants || $slot->isOccupied($GLOBALS['user']->id))): ?>
–
elseif ($slot->block->show_participants): ?>
foreach ($slot->bookings as $booking):
if (!$slot->block->show_participants && $booking->user_id !== $GLOBALS['user']->id) continue;
?>
-
= htmlReady($booking->user->getFullName()) ?>
if ($booking->user_id === $GLOBALS['user']->id): ?>
-
= _('Mein Grund der Buchung') ?>:
if ($booking->reason): ?>
= htmlReady($booking->reason) ?>
else: ?>
= _('Kein Grund angegeben') ?>
endif; ?>
endif; ?>
endforeach; ?>
elseif ($slot->isOccupied($GLOBALS['user']->id)): ?>
= htmlReady($GLOBALS['user']->getFullName()) ?>
if (count($slot->bookings) > 1): ?>
(= sprintf(_('+%u weitere'), count($slot->bookings) - 1) ?>)
endif; ?>
endif; ?>