{#- Admin list of events, grouped by kind. Slots for features that build on events: events.admin.list.actions header buttons beside "+ Add event" (render_template_hooks) events.admin.list.event_meta called per row, hook(e), at the end of the event's meta line may_add, and may(endpoint, event) 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 event of the row, so no button answers 403. -#} {% extends "base_template.html" %} {% block title %}Events{% endblock %} {% block content %}
Manage events and their kinds.
|
{% if e.image %}
|
{{ e.title }}
{% if not e.published %}draft{% endif %}
{% if e.starts_at %}{{ e.starts_at.strftime('%Y-%m-%d %H:%M') }}{% endif %}
{% if e.room %} · {{ e.room }}{% endif %}
{% if e.speaker %} · {{ e.speaker }}{% endif %}
{% for hook in get_template_hooks("events.admin.list.event_meta") %}{{ (hook(e) or "") | safe }}{% endfor %}
|
{% if may('events.admin_move', e) %} {% endif %} | {% if may('events.admin_edit', e) %} Edit {% endif %} {% if may('events.admin_delete', e) %} {#- The question is translated, and the title goes into it escaped. striptags gives the plain text back, the title 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 %} |