{% extends "plainui/base.html" %} {% from "plainui/components/calendar.html" import calendar with context %} {% import "plainui/components/list_events.html.j2" as list_events with context %} {% import "plainui/components/nav.html" as navMacro with context %} {% import "plainui/components/tagbox.html" as tagMacros with context %} {% macro filter_button(value, active, label) -%} {%- endmacro %} {% macro track_button(t) %} {% endmacro %} {% block title %}Conference {{conf.name}}{% endblock %} {% block content %} {{ navMacro.top_nav(_("Fahrplan")) }} {# TODO: Download options

{{ _("download") }}

{{ _("Xcal") }} {{ _("Xml") }} {{ _("Json") }} {{ _("QR-Code") }}
#}
{% if show_assembly_filters %}{% endif %} {% if day %}{% endif %} {% if kind %}{% endif %} {% if assembly %}{% endif %} {% if track %}{% endif %} {% if my_fahrplan %}{% endif %} {% if is_recorded is not none %}{% endif %}
{% if user.is_authenticated %} {{ filter_button("fmy", my_fahrplan, _("My Fahrplan")) }}
{% endif %} {{ filter_button('kall', kind == 'all', _("all")) }} {{ filter_button('kofficial' if kind != 'official' else 'kall', kind == 'official', _("curated only")) }} {{ filter_button('kassembly' if kind != 'assembly' else 'kall', kind == 'assembly', _("assembly only")) }} {{ filter_button('ksos' if kind != 'sos' else 'kall', kind == 'sos', _("selforganized only")) }}
{% for n in range(days) %} {{ filter_button('d' ~ (n if n != day else ''), n == day, _("Day %(n)s", n=n + 1)) }} {%- endfor %}
{{ filter_button("ry" if is_recorded is not true else "r", is_recorded is true, _("recorded only")) }} {{ filter_button("rn" if is_recorded is not false else "r", is_recorded is false, _("not recorded only")) }}
{{ tagMacros.tag(_("Tracks"), style="clear") }} {% for track in tracks %} {{ track_button(track) }} {%- endfor %}
{# Leave for future, see above {% if show_assembly_filters %}
{% for asmbly in assemblies %} {%- endfor %}
{% endif %} #}
{% if timezone_warning %} {% call alert.info(class="mb-2") %} {{ _( "Your timezone is configured to %(user_timezone)s, conference timezone is %(conf_timezone)s, showing times in your timezone", user_timezone=current_timezone, conf_timezone=conference_timezone ) }} {% endcall %} {% endif %} {% if mode == 'list' %} {{ list_events.list(events, my_favorite_events) }} {% endif %} {% endblock %} {% block fullpage_add %} {% if mode == 'calendar' %}
{{ calendar(events) }}
{% endif %} {% endblock %}