{% extends "orga/base.html" %}
{% load i18n %}
{% load staticfiles %}

{% block content %}

    <div class="dashboard-list">
        {% for event in request.orga_events %}
            <a href="{{ event.orga_urls.base }}" class="dashboard-block">
                <h1>{{ event.name }}</h1>
                <span class="dashboard-description">
                    {% if event.date_from %}{{ event.date_from }} – {{ event.date_to }}<br>{% endif %}
                    /{{ event.slug }}
                </span>
            </a>
        {% endfor %}
        {% if request.user.is_superuser %}
            <a href="{% url "orga:event.create" %}" class="dashboard-block">
                <h1><span class="fa fa-plus"></span>{% trans "New event" %}</h1>
                <span class="dashboard-description">{% trans "Uh, a new event?<br>Head over here, please!" %}</span>
            </a>
        {% endif %}
    </div>

{% endblock %}
