{% load i18n %}

{% if plugin_configuration_error %}
    {% if request.user.is_staff or request.user.is_superuser %}
        <p>{{ plugin_configuration_error }}</p>
    {% endif %}
{% else %}
    <ul>
        {% for event in events %}
            <li>
                <a href="{{ event.get_absolute_url }}">{{ event.get_title }}</a>
                <span>{{ event.start|date }}</span>
            </li>
        {% empty %}
            <li>{% trans "No items available" %}</li>
        {% endfor %}
    </ul>
{% endif %}
