{% 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, show_notes=true) %} {% set contrib = subcontrib.contribution %} {% set anchor = slugify('sc', contrib.friendly_id, subcontrib.friendly_id, subcontrib.title, maxlen=30) %}
  • {{- subcontrib.title -}} {% if subcontrib.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) }}
  • {% endmacro %}