{% extends 'emails/base_i18n.html' %} {% from 'events/reminders/emails/_agenda.html' import render_agenda %} {% set address = event.address | markdown %} {% set location = event.venue_name %} {% set room = event.room_name %} {% set label = ' {%s}'|format(event.label.title) if event.label else '' %} {% block subject -%} [{% trans %}Event reminder{% endtrans %}] {{ event.title }}{{ label }} ({{ event.start_dt | format_datetime('short', timezone=event.tzinfo) }} {{ event.timezone }}) {%- endblock %} {% block header %}{% endblock %} {% block footer_url %}{{ url }}{% endblock %} {% block body -%}

{%- trans title=event.title, start=event.start_dt|format_datetime(timezone=event.tzinfo), tz=event.timezone -%} Please note that the event "{{ title }}"{{ label }} will start on {{ start }} ({{ tz }}). {%- endtrans -%}

{%- if location or room %}

{% trans loc=render_location() %}It will take place at {{ loc }}{% endtrans %}

{{ render_address() }} {%- elif address %}

{% trans %}It will take place at the following address:{% endtrans %}

{{ address }} {%- endif -%} {%- if with_description and event.description %}

{% trans %}Description{% endtrans %}

{{ event.description }} {%- endif -%} {%- if note %}

{% trans %}Note{% endtrans %}

{{ note }} {%- endif -%} {%- if with_agenda %} {{ render_agenda(event, agenda) }} {%- endif -%} {%- endblock %} {%- macro render_location() -%} {%- if location -%} {%- if room -%} {{ location }} {{ render_room() }}. {%- else -%} {{ location }}. {%- endif -%} {%- elif room -%} {{ render_room() }}. {%- endif -%} {%- endmacro -%} {%- macro render_room() -%} {%- if room -%} {%- if location -%} ({{ room }}) {%- else -%} {% trans r=room|trim %}room {{ r }}{% endtrans %} {%- endif -%} {%- endif -%} {%- endmacro -%} {%- macro render_address() -%} {%- if address %}

{% trans %}Address:{% endtrans %}

{{ address }} {%- endif -%} {%- endmacro -%}