<div class="csm-event csm-event--post dept--c{{ event.entity.container.color|default(0) }}">
<div class="row">
<!--begin event body-->
<div class="csm-event__body">
<p class="csm-event__dept">{{ event.frontendDepartmentName }}</p>
<h1 class="csm-event__title"> {{ event.frontendTitle }}</h1>
<div class="csm-event__meta">
<p class="csm-event__date">{{ event.frontendDate }}</p>
{% if event.frontendTime is not empty %}
<p class="csm-event__time">{{ event.frontendTime }}</p>
{% endif %}
{% if event.frontendType is not empty %}
<p class="csm-event__type">{{ event.frontendType }}</p>
{% endif %}
{% if event.frontendLocation is not empty %}
<p class="csm-event__location">
{% if event.frontendLocationLink is not empty %}<a href="{{ event.frontendLocationLink }}">{% endif %}
{{- event.frontendLocation -}}
{% if event.frontendLocationLink is not empty %}</a>{% endif %}
</p>
{% endif %}
</div>
<div class="csm-event__description">
<div>
{{- event.frontendDescription|raw -}}
</div>
{% if event.frontendAttachments|default([])|length > 0 %}
<div class="event-attachments">
<h2 class="event-attachments__heading">
Attachments
</h2>
<ul class="event-attachments__list">
{% for attachment in event.frontendAttachments %}
{%- set attachment = ui_attachment(attachment) -%}
<li class="event-attachments__item"><a href="{{ attachment.url }}">{{ attachment.name }}</a></li>
{% endfor %}
</ul>
</div>
{% endif %}
<a class="m-button m-button--back"
href="{{ app.request.headers.get('Referer') is not empty ? app.request.headers.get('Referer') : containerUrl(_globals.container) ~ '/calendar' }}"
>
Back to Calendar
</a>
</div>
</div>
<!--end event body-->
<!--begin event sidebar-->
<div class="csm-event__sidebar">
<h2 class="csm-event__sidebar__heading">
Add event to my calendar
</h2>
<p>Add this event to your personal calendar by selecting one of the formats below.</p>
<div class="csm-event__actions">
<a class="m-button m-button--add-cal m-button--google-cal" role="button" tabindex="0"
href="{{ _share.factory('google').url(event) }}" target="_blank">
<em class="fa fa-google" aria-hidden="true"></em>Google Calendar
</a>
<a class="m-button m-button--add-cal m-button--office365-cal" role="button" tabindex="0"
href="{{ _share.factory('microsoft').url(event) }}" target="_blank">
<em class="fa fa-windows" aria-hidden="true"></em>Office 365 Calendar
</a>
<a class="m-button m-button--add-cal m-button--ical-cal" role="button" tabindex="0"
href="{{ _share.factory('ical').url(event) }}">
<em class="fa fa-calendar-o" aria-hidden="true"></em>iCal
</a>
</div>
</div>
<!--begin event sidebar-->
</div>
</div>