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

{% load i18n %}
<div class="dashboard-block-wrapper">
    <a class="dashboard-block dashboard-block-extended" href="{{ event.orga_urls.base }}">
        <h2 class="name">{{ event.name }}</h2>
        <div class="dashboard-description">
            <div class="date">{{ event.get_date_range_display }}</div>
        </div>
    </a>
    <div class="dashboard-block-extension">
        <a href="{{ event.orga_urls.submissions }}" class="dashboard-block-addon dashboard-block-addon-{% if event.submission_count %}info{% else %}secondary{% endif %}">
            {% if event.submission_count %}
                {{ event.submission_count }}
                {% blocktranslate trimmed count count=event.submission_count %}
                    proposal
                {% plural %}
                    proposals
                {% endblocktranslate %}
            {% else %}
                {% translate "No proposals yet" %}
            {% endif %}
        </a>
        <a href="{{ event.orga_urls.base }}" class="dashboard-block-addon dashboard-block-addon-{% if event.is_public %}success{% else %}secondary{% endif %}">
            {% if event.is_public %}
                <div class="state active">{% translate "live" %}</div>
            {% else %}
                <div class="state inactive">{% translate "Not public" %}</div>
            {% endif %}
        </a>
    </div>
</div>
