{% load i18n %}
{% block cell-content %}
{% if json.data %}
{% if cell.title %}
{{ cell.title }}
{% endif %}
{% with first_monday=json.data.0.date|date|adjust_to_week_monday last_item=json.data|last %}
{% with last_day=last_item.date|date|adjust_to_week_monday|add_days:6 %}
{% now 'W' as current_week %}
{% spaceless %}
{% for day in first_monday|iterate_days_until:last_day %}
{% if day.weekday == 0 %}
{% with sunday=day|add_days:6 %}
{% blocktrans with day_date=day|date:'d/m' sunday_date=sunday|date:'d/m' %}Week of {{ day_date }} to {{ sunday_date }}{% endblocktrans %}
{% endwith %}
{% endif %}
{{ day|date:"l d/m" }}
{% with day_str=day|date:"Y-m-d" %}
{% for item in json.data %}
{% if item.date == day_str %}
{{ item.label }}{% if item.places.full and item.status != "booked" %} ({% trans "full" %}){% endif %}