{% from 'events/display/common/_manage_button.html' import render_manage_button %} {% from 'events/timetable/display/indico/_common.html' import render_speakers, render_references, render_attachments, render_notes, render_description, render_time %} {% macro render_subcontribution(subcontrib, event, theme_settings, theme_context, show_notes=true) %}
  • {% if theme_settings.number_contributions %} {%- set n_scontrib = theme_context.num_subcontribution -%} {{- 'abcdefghijklmnopqrstuvwxyz'[(n_scontrib - 1) % 26] * ((n_scontrib - 1) // 26 + 1) }}) {% endif %} {{- subcontrib.title -}} {% if subcontrib.duration and not theme_settings.hide_duration %} {{- subcontrib.duration | format_human_timedelta(narrow=true) -}} {% endif %}
    {{ render_manage_button(subcontrib, 'SUBCONTRIBUTION', show_notes=show_notes, show_button=(not event.is_locked and subcontrib.can_manage_attachments(session.user))) }}
    {% if subcontrib.description %} {{ render_description(subcontrib, class='subcontrib-description') }} {% endif %} {% set speakers = subcontrib.person_links|selectattr("is_speaker")|list %} {% if speakers %} {{ render_speakers(speakers) }} {% endif %} {% if subcontrib.references -%} {{ render_references(subcontrib) }} {% endif %} {{ render_attachments(subcontrib) }}
    {{ render_notes(subcontrib, anchor=subcontrib.slug) }}
  • {% endmacro %}