{#- A community's calendar: its events to come, or past, by month, each with its date, title, hours and place; making one; the month at a glance beside it, a dot on the days an event starts. Drawn in `mockups/templates/calendar.html`. -#} {% extends "ads_community.html" %} {% import "calendar/_events.html" as ev with context %} {% set kw = {"community_id": g.community.slug} %} {% block page_title %}{{ _("Calendar") }} ยท {{ g.community.name }}{% endblock %} {% block content %}

{{ _("The events past") if past else _("The events to come") }}

{% for month, events in months %}

{{ month | dateformat("MMMM y", rebase=false) | capitalize }}

{% else %}

{{ _("No event has been posted to this calendar yet.") if past else _("There are no upcoming events on this calendar yet.") }}

{% endfor %}
{% endblock %}