{% from 'events/display/common/_manage_button.html' import render_manage_button %} {% from 'events/display/indico/_common.html' import render_location %} {% from 'events/timetable/display/indico/_subcontribution.html' import render_subcontribution %} {% from 'events/timetable/display/indico/_common.html' import render_speakers, render_references, render_attachments, render_notes, render_description, render_time %} {% macro render_contribution(contrib, event, theme_settings, theme_context, parent=none, nested=false, hide_end_time=false, timezone=none, show_notes=false, show_location=false) -%}
  • {% if theme_settings.number_contributions %} {{ theme_context.num_contribution }} {% else %} {{ render_time(contrib, timezone=timezone, hide_end_time=hide_end_time) }} {% endif %}
    {{- contrib.title -}} {% if contrib.duration and not theme_settings.hide_duration -%} {{- contrib.duration | format_human_timedelta(narrow=true) -}} {%- endif %} {% if contrib.has_location_info and show_location -%} {{ render_location(contrib, parent=parent) }} {%- endif %}
    {{ render_manage_button(contrib, 'CONTRIBUTION', show_notes=show_notes, show_button=(not event.is_locked and contrib.can_manage_attachments(session.user))) }} {{ template_hook('vc-actions', event=event, item=contrib) }}
    {% if contrib.description %} {{ render_description(contrib, class='contrib-description') }} {% endif %} {% set speakers = contrib.person_links|selectattr("is_speaker")|list %} {% if speakers %} {{ render_speakers(speakers) }} {% endif %} {% if contrib.references -%} {{ render_references(contrib) }} {%- endif %} {{ render_attachments(contrib) }} {{ render_notes(contrib, anchor=contrib.slug) }} {% if contrib.subcontributions %} {% endif %}
  • {%- endmacro %}