{% macro render_program(event, days, config, program_config) %} {% for day, entries in days.items() %}
{% trans count=speakers|length -%}
Speaker
{%- pluralize -%}
Speakers
{%- endtrans -%}
{{ _render_names(speakers, show_title=config.show_title, show_affiliation=config.show_affiliation) }}
{% trans %}Location{% endtrans %}
{{ loc }}
{% if type == 'BREAK' %} {% trans %}Break{% endtrans %} {% elif type == 'CONTRIBUTION' %} {% trans %}Contribution{% endtrans %} {% elif sess.is_poster %} {% trans %}Poster Session{% endtrans %} {% elif type == 'SESSION_BLOCK' %} {% trans %}Session{% endtrans %} {% endif %}
{% if program_config.show_siblings_location %} {% set loc = _render_place(entry)|trim %} {% if loc %}{% trans %}Location{% endtrans %}: {{ loc }}
{% endif %} {% endif %} {% set people = object.person_links if type == 'SESSION_BLOCK' else object.speakers %} {% if type != 'BREAK' and people %} {%- if type == 'SESSION_BLOCK' -%} {% trans count=people|length -%} Convener: {%- pluralize -%} Conveners: {%- endtrans -%} {%- else -%} {% trans count=people|length -%} Speaker: {%- pluralize -%} Speakers: {%- endtrans -%} {%- endif -%} {{ _render_names(people, show_title=config.show_title, show_affiliation=config.show_affiliation) }} {% endif %}{{ day|format_skeleton('EEEEdMMMM') }} {{ format_interval(entry.start_dt.astimezone(entry.event.tzinfo), entry.end_dt.astimezone(entry.event.tzinfo), format='short') }}
{% endif %} {% endmacro %} {# Utilities #} {% macro _render_place(entry) %} {# Entry argument could be both an entry or a data object attached to an entry #} {% set entry = entry.object or entry %} {{ [entry.venue_name, entry.room_name, entry.address] | select | join(', ') | trim }} {% endmacro %} {% macro _render_names(people, show_title=false, show_affiliation=false) %} {% for person in people %} {%- if show_title %} {{ person.title }} {%- endif %} {{ person.display_full_name }} {%- if show_affiliation and person.affiliation %} ({{ person.affiliation }}) {%- endif -%} {%- if not loop.last %},{% endif %} {% endfor %} {% endmacro %} {%- macro _get_custom_id(entry) -%} {{ 'c' ~ entry.type ~ '-' ~ entry.id }} {%- endmacro -%} {% macro _get_color_styles(entry) %} {% set c_id = _get_custom_id(entry) %} {% set colors = entry.object.colors or entry.object.session.colors %} {% endmacro %} {% macro _render_description(description) %}