{% extends "base.html" %} {% block title %}Calendario{% endblock %} {% block main %}

Calendario

{% if may_edit %} Añadir evento {% endif %}
{% if public_missing %}

No se pudo leer la agenda pública del servidor de git, así que aquí abajo faltan los eventos del sitio. Los internos están todos.

{% endif %}

Ir a este mes

{# Said above the grid rather than below it: on a phone the month is a column of days, and a line under thirty-one empty rows is a line nobody reads. The public agenda says the same thing in its own words (agenda.html). #} {% if not by_day %}

No hay nada en {{ label }}.

{% endif %} {% for day in weekdays %}{% endfor %} {% for week in weeks %} {% for day in week %} {# calendar.monthdayscalendar pads the first and last weeks with zeroes, which are days belonging to the neighbouring months. #} {% if day == 0 %} {% else %} {% endif %} {% endfor %} {% endfor %}
{{ day }}
{# The weekday travels with the number because on a phone the header row is hidden — the grid is a column there, and a day without its weekday is just an integer. `loop.index0` of this loop *is* the weekday, since each week is seven cells starting on Monday, so nothing has to be computed in Python. Above 640px .cal__weekday is display:none and the column header says it instead. #} {{ weekdays[loop.index0] }} {{ day }} {% for item in by_day.get(day, []) %} {% if item.starts_at %} {% endif %}{{ item.title }} {% if item.public %}público{% endif %} {% endfor %} {% if may_edit %} {# The day is carried into the form, so adding something to the 24th starts with the 24th already filled in. #} + {% endif %}

Los eventos marcados público están en vienalatina.com y los ve cualquiera. Los demás sólo se ven desde aquí.

{% endblock %}