{% macro _render_location_tip(item) -%} {% set show_url = item.room and item.room.map_url %}
{% if item.room_name -%}

{{ item.room_name }}

{% endif %} {% if item.venue_name -%}

{{ item.venue_name }}

{% endif %} {% if item.address %}
{{- item.address }}
{%- endif %} {% if item.room and item.room.capacity %}
{{ item.room.capacity }}
{% endif %} {% if show_url %} {% trans %}Show room on map{% endtrans %} {% endif %}
{%- endmacro %} {% macro render_location(item, parent=none, class='item-location', header=false) -%} {% set show_venue = not parent or (parent.venue_name != item.venue_name) %} {% set show_room = item.room_name != '' %} {% set show_address = item.address != '' %} {% if show_venue or show_room %} {%- if show_venue and show_room -%} {{ item.room_name }}{% if item.venue_name %} ({{ item.venue_name }}){% endif %} {%- elif show_venue -%} {%- if show_venue and show_address -%} {{ item.venue_name }} ({{ item.address }}) {%- else -%} {{ item.venue_name }} {%- endif -%} {%- else -%} {{ item.room_name }} {%- endif -%} {{ _render_location_tip(item) }} {% endif %} {%- endmacro %} {% macro render_virtual_hosting(item, parent=none, class='item-location', header=false) -%} {% if item.virtual_hosting %} Virtually Hosted {% if item.virtual_hosting_url %} ( {{ item.virtual_hosting_url }} ) {% endif %} {% endif %} {%- endmacro %} {% macro render_user_data(user_data, show_title=true, italic_affiliation=false) -%} {% if user_data.title and show_title -%} {{- user_data.title -}} {%- endif %} {{ user_data.display_full_name }} {%- if user_data.affiliation -%} ({#--#} {%- if italic_affiliation -%} {{ user_data.affiliation }} {%- else -%} {{ user_data.affiliation }} {%- endif -%} {#--#}){#--#} {#--#} {%- endif -%} {%- endmacro %} {% macro render_users(user_list, span_class='', title=true, italic_affiliation=false, separator=', ') -%} {%- for link in user_list -%} {%- if caller is defined -%} {{- caller(link) -}} {%- else -%} {{- render_user_data(link, show_title=title, italic_affiliation=italic_affiliation) -}} {%- endif -%} {%- if not loop.last -%} {{- separator -}} {%- endif -%} {%- endfor -%} {%- endmacro %} {% macro render_speakers(contribution) %}

{%- trans count=contribution.speakers|length -%} Speaker {%- pluralize -%} Speakers {%- endtrans -%}

{{ render_users(contribution.speakers|sort(attribute='display_order_key'), span_class='speaker-item icon-user', separator='') }}
{% endmacro %} {% macro render_datetime(prop_name, dt, timezone, format='medium', show_weekday=false) -%} {%- endmacro %} {% macro render_event_time(event, timezone) -%}
{% trans %}Starts{% endtrans %}
{% trans %}Ends{% endtrans %}
(Timezone - {{ event.display_tzinfo.zone }})
{%- endmacro %}