<!--
SPDX-FileCopyrightText: 2018-present Tobias Kunze
SPDX-License-Identifier: AGPL-3.0-only WITH LicenseRef-Pretalx-AGPL-3.0-Terms
-->

{% extends "agenda/base.html" %}

{% load i18n %}
{% load rich_text %}

{% block agenda_content %}
    <p>
        {% if request.event.featured_sessions_text %}
            {{ request.event.featured_sessions_text|rich_text }}
        {% else %}
            {% if talks %}
                <strong>{% translate "Welcome to our list of featured sessions!" %}</strong>
                <br>
                <br>
                {% blocktranslate trimmed %}
                    We prepared a list of exciting sessions, so you can get a feel for our
                    conference. Please keep in mind that this is not our full schedule.
                    We will follow up with the full schedule in time, stay tuned!
                {% endblocktranslate %}
            {% else %}
                {% blocktranslate trimmed %}
                    In the near future you will see a curated list of sessions we’d like
                    to show off here. Right now we are busy reviewing proposals.<br>
                    Check back later!
                {% endblocktranslate %}
            {% endif %}
        {% endif %}
    </p>
    <article id="featured-talks">
        {% for talk in talks %}
            <section>
                <h3 class="talk-title">
                    <div>
                        <a href="{{ talk.urls.public }}">
                            {{ quotation_open }}{{ talk.title }}{{ quotation_close }}
                        </a>
                    </div>
                    <small class="text-muted">
                        {% if talk.display_speaker_names %}{{ talk.display_speaker_names }};{% endif %}
                        <i>{{ talk.submission_type.name }}</i>
                    </small>
                </h3>
                <p>{{ talk.abstract|default:talk.description|default:""|rich_text }}</p>
                {% if not forloop.last %}<hr>{% endif %}
            </section>
        {% endfor %}
    </article>
{% endblock agenda_content %}
