{% load i18n %} {% for week_days in view.get_timetable_infos %} {% if forloop.first %} {% endif %} {% for day in week_days.days %} {% if forloop.first %} {% endif %} {% endfor %} {% for hour in week_days.periods %} {% for day in week_days.days %} {% endfor %} {% endfor %} {% if forloop.last %}
{% blocktrans with weeknum=day.date|date:"W" %}Week{{ weeknum }}{% endblocktrans %} {% if kind == 'month' and not day.other_month or kind == 'week' %}{{ day.date|date:"l j" }}{% if kind == 'week' %}
{{ day.date|date:"F" }}{% endif %}
{% endif %}
{{ hour|date:"TIME_FORMAT" }} {% if forloop.parentloop.first %} {% for slot in day.infos.booked_slots %}
{{ slot.booking.event.start_datetime|date:"TIME_FORMAT" }} {{ slot.booking.get_user_block }}
{% endfor %} {% endif %}
{% endif %} {% empty %}
{% if kind == 'month' %}

{% trans "No bookings this month." %}

{% else %}

{% trans "No bookings this week." %}

{% endif %}
{% endfor %}