{# overview of current events @variable item(xmlui_item): item to display @variable comments(data_object.BlogItems): comments of the item @variable comments_service(unicode): service for adding comments @variable comments_node(unicode): node for adding comments #} {% if not embedded %}{% extends 'base/base.html' %}{% endif %} {% import 'components/block.html' as block with context %} {% block body %} {{ icon_defs('calendar') }}
{% trans %}There is not events discovery yet, this will come in the future.{% endtrans %}
{{ component.action_button(url_event_new) }}
{% if events is defined %}
{% trans nb_events=events|length%} You have currently {{nb_events}} event in your personal list {% pluralize %} You have currently {{nb_events}} events in your personal list {% endtrans %}
{% call(part, interest) block.interests_grid(events, 'calendar') %} {% if part == "header-title" %} {{interest.date|date_fmt("full", date_only=true)}} {% elif part == "content" %}
{{ interest.name|default(_("unnamed")) }}
{{interest.date|date_fmt("relative")}}
{% endif %} {% endcall %} {% endif %}
{% endblock body %}