{% from 'events/display/indico/_common.html' import render_location, render_users %} {% from 'message_box.html' import message_box %} {% macro render_contribution_list(event, timezone, contributions, total_entries, with_session_info=true) %} {% if contributions %} {% for contrib in contributions | selectattr('start_dt') | sort(attribute='title') | sort(attribute='start_dt') %} {{- _render_contribution_row(timezone, contrib, with_session_info) -}} {% endfor %} {% for contrib in contributions | rejectattr('start_dt') | sort(attribute='title') %} {{- _render_contribution_row(timezone, contrib, with_session_info) -}} {% endfor %} {%- else %} {%- call message_box('info') %} {%- if total_entries %} {%- trans -%} The filtering criteria do not match with any of the existing contributions. Try to clear the filters. {%- endtrans %} {%- else %} {%- trans %}There are no contributions yet.{% endtrans %} {%- endif %} {%- endcall %} {%- endif %} {% endmacro %} {% macro _render_contribution_row(timezone, contrib, with_session_info=true) %}