{% extends "base_template.html" %} {% block title %}Editions{% endblock %} {% block content %}

Editions

Each instalment of the event. The current one drives the homepage and the programme page; the rest form the archive.

{#- may_add, and may(endpoint, edition) on each row, say whether the account may open the screen a button leads to, asked as that screen's own gate asks, for the edition of the row, so no button answers 403. -#} {% if may_add %} + Add edition {% endif %}
{% with messages = get_flashed_messages(with_categories=true) %} {% for category, message in messages %}
{{ message }}
{% endfor %} {% endwith %}
{% for e in editions %} {% else %} {% endfor %}
Edition Dates Events
{{ e.name }} {% if e is sameas current %}current{% endif %} {% if not e.published %}draft{% endif %}
/editions/{{ e.slug }}{% if e.venue %} · {{ e.venue }}{% endif %}
{% if e.starts_on %}{{ e.starts_on.strftime('%Y-%m-%d') }}{% endif %} {% if e.ends_on and e.ends_on != e.starts_on %} → {{ e.ends_on.strftime('%Y-%m-%d') }}{% endif %} {{ counts.get(e.id, 0) }} {% set may_photos = may('editions.admin_photos', e) %} {% if e is not sameas current and may('editions.admin_set_current', e) %}
{% endif %} {% if e.starts_on and e.ends_on and may('editions.admin_adopt', e) %}
{% endif %} {% if may_photos %} Photos Posters {% endif %} {% if may('editions.admin_sponsors', e) %} Sponsors {% endif %} {% if may('editions.admin_edit', e) %} Edit {% endif %} {% if may('editions.admin_delete', e) %} {#- The question is translated, and the name goes into it escaped. striptags gives the plain text back, the name as it is written, and tojson writes it into the script as one string, inside single quotes, so no quote in it can end the string. -#}
{% endif %}
No editions yet. Add the next one and flag it as current; events dated within it can then be attached in one click.
{% endblock %}