{strip} {$_selected_calendar = $all_calendars[$event.calendar_id]}

{if $event.is_status}[`Status`]{/if} {if !$event.is_status}[`Event`]{/if}

[`Status`] [`Event`]
{if $user} {* USER *}
[`User`]
{$user.name|escape}
{/if} {* CALENDAR *}
[`Calendar`]
{if $event.is_status} {if !empty($_selected_calendar.status_bg_color)} {$style = "color: `$_selected_calendar.status_font_color`; background: `$_selected_calendar.status_bg_color`;"} {else} {$style = "color: `$_selected_calendar.font_color`; background: `$_selected_calendar.bg_color`;"} {/if} {else} {if !empty($_selected_calendar.status_bg_color)} {$style = "color: `$_selected_calendar.font_color`; background: `$_selected_calendar.bg_color`;"} {else} {$style = "color: `$_selected_calendar.bg_color`; background: transparent; box-shadow: inset 0 0 0 1px currentColor;"} {/if} {/if} {$_selected_calendar.name|escape}
{* NAME *}
[`Event`]
{$event.summary|escape}
{* DESCRIPTION *} {if !empty($event.description)}
[`Description`]
{$event.description|escape|nl2br}
{/if} {* LOCATION *} {if !empty($event.location)}
[`Location`]
{$event.location|escape}
{/if} {if empty($event.is_allday)} {$event_start = waDateTime::format('humandatetime', $event.start)} {$event_end = waDateTime::format('humandatetime', $event.end)} {else} {$event_start = teamHelper::date($event.start, 'humandate')} {$event_end = teamHelper::date($event.end, 'humandate')} {/if} {* START *}
{if $event_start != $event_end} [`Start`] {else} [`When`] {/if}
{$event_start}
{* END *} {if $event_start != $event_end}
[`End`]
{$event_end}
{/if} {if !empty($event.external_calendar_info)}
[`Source`]
{if !empty($event.external_calendar_info.plugin.icon)} {/if} {$event.external_calendar_info.name|escape}
{$event.external_calendar_info.plugin.account_info_html}
{/if}
{if $can_edit} {/if}
{if $can_edit} {/if}
{/strip}