{% import "plainui/components/markdown.html" as markdownMacro %} {% import "plainui/components/event_info.html" as eventInfoMacro with context %} {% import "plainui/components/title.html" as titleMacro %} {% import "plainui/components/tagbox.html" as tagboxMacro %} {% import "plainui/components/resourcesbox.html" as resboxMacro %} {% import "plainui/components/list_events.html" as list_events with context %} {% import "plainui/components/integrations.html" as integrations %} {% import "plainui/components/nav.html" as navMacro with context %} {% import "plainui/components/function_btns.html" as fbtns with context %} {% import "plainui/components/image.html" as imageMacro %} {% import "plainui/components/map.html" as mapMacro %} {%- macro random_preview_image_url() -%} {%- set imgs = [1,2,3,4,5,6,7] -%} {{ static('plainui/img/hub-assembly-event-0%s.png' % (imgs | random ,)) }} {%- endmacro -%} {% extends "plainui/base.html" %} {% block title %}{{conf.name}} - Event {{event.name}}{% endblock %} {% block head %} {% endblock %} {% block content %}
{{ navMacro.top_nav(_("Event"), has_breadcrumbs=True) }} {% set current_assembly = { "link": url('plainui:assembly', assembly_slug=assembly.slug), "name": assembly.name } if assembly and assembly.slug else {} %}
{{ _("Day %(n)s", n=event.conference_day) }}
{{ event.schedule_start | strftimehm }}
{{ event.schedule_end | strftimehm }}
{{ event.name }}
{% if event.language %} {{ tagboxMacro.tag( event.language, icon="translate" ) }} {% endif %} {% if event.kind != 'official' %}
{{ _("Self-organized Session") if event.kind == 'sos' else _("Assembly-Event") }}
{% endif %} {% if event.track and event.track.name %}
{{ event.track.name }}
{% endif %}

{{ _("Speakers") }}

{% for speaker in speakers %}
{{ speaker }}
{% else %}
{{ _("No Speakers publicated yet") }}
{% endfor %}
{% if event.abstract %}

{{ _("Abstract") }}

{{ event.abstract }}
{% endif %}
{% set link = url('plainui:event', event_slug=event.slug ) %} {{ fbtns.schedule(event.id, is_scheduled, color="primary") }} {{ fbtns.fav(event.id, "event", is_favorite, color="primary") }} {{ fbtns.report(link, color="primary") }}
{% if event.banner_image and event.banner_image.url %} {{ imageMacro.image(image=event.banner_image.url, alt=event.banner_image.name , title=event.banner_image.name) }} {% else %} {{ imageMacro.image(image=random_preview_image_url(), alt=event.name, title=event.name) }} {% endif %}
{% if event.description_html %}

{{ _("Event description") }}

{{ markdownMacro.markdown(markdown=event.description_html | safe, border=False) }}
{% endif %}
{% if event.kind == "official" and running_state == "running" %}
{{ integrations.vocPlayer(vocLecture=event.slug) }}
{% endif %}
{% if current_assembly %}

{{ _("Assembly") }}

{{ tagboxMacro.tag( current_assembly.name, icon="people-fill", link=current_assembly.link ) }}
{% endif %} {% if event.room and event.room.name %}

{{ _("Room") }}

{{ tagboxMacro.tag( event.room.name, icon="geo-alt-fill", link=url('plainui:room', slug=event.room.slug) ) }}
{% endif %} {% if event.location %}

{{ _("Event__location") }}

{{ event.location }}
{% endif %}
{# remove comment to render the map {{ mapMacro.map(conf) }} #}
{% endblock %}