{% extends "agenda_culturel/page.html" %} {% load cache %} {% load cat_extra %} {% load event_extra %} {% load utils_extra %} {% load static %} {% load tag_extra %} {% block entete_header %} {% css_categories %} {% endblock %} {% block title %}{% block og_title %}{% if calendar.today_in_calendar %}{% if category %}{{ category.name }}{% else %}Sorties culturelles{% endif %} cette semaine à Clermont-Ferrand et aux environs{% else %}{% if category %}{{ category.name }} la semaine{% else %}Semaine{% endif %} du {{ calendar.firstdate|date|frdate }}{% endif %}{% endblock %}{% endblock %} {% block navigation-menu %} {% cache 90000 navigation_links_week user.is_authenticated calendar.firstdate category filter.get_url %} {% navigation_links filter category %} {% endcache %} {% endblock %} {% block content %} {% with cache_timeout=user.is_authenticated|yesno:"30,6000" %} {% cache cache_timeout week user.is_authenticated calendar.firstdate category filter.get_url %} {% include "agenda_culturel/filter-inc.html" with filter=filter noarticle=0 category=category %}

{% if calendar.today_in_calendar %} {% if category %}{{ category.name }} cette semaine{% else %}Cette semaine{% endif %} {% else %} {% if category %}{{ category.name }} la {% endif %}semaine du {{ calendar.firstdate |date:"j F"|frdate }} {% endif %}{% if filter.has_location %}à {{ filter.get_position }}{% endif %}

{% if calendar.firstdate|shift_day:-1|not_before_first %} {% if calendar.lastdate|not_after_last %} {% if category %} {% else %} {% endif %} {% endif %} {% endif %}
{% for day in calendar.calendar_days_list %} {% with day.date|date:"Y-m-d" as daytag %} {% with "date-"|add:daytag as daytag %}
{% if day.is_today %} {% endif %}

{{ day.date | date:"l j" }}

{% if day.events %}
    {% for event in day.events %} {% if event.is_first_after_now %}
  • {% now "H:i" %}
  • {% endif %}
  • {{ event.category | circle_cat:event.has_recurrences }} {% if event.start_day == day.date and event.start_time %} {{ event.start_time }} {% endif %} {{ event|picto_status }} {{ event.title|no_emoji }} {{ event|tw_badge }}
    {% if event.has_image_url %}
    {% else %}
    {% endif %}

    {{ event.category|small_cat_recurrent:event.has_recurrences }} {{ event|picto_status }} {{ event.title }} {{ event|picto_visibility:user.is_authenticated }}

    {% picto_from_name "map-pin" %} {% if event.exact_location %} {{ event.exact_location.name }}, {{ event.exact_location.city }} {% else %} {% if perms.agenda_culturel.change_event and perms.agenda_culturel.change_place %} {{ event.location }} {% else %} {{ event.location }} {% endif %} {% endif %}

    {% picto_from_name "calendar" %} {% if event.end_day and event.end_day != event.start_day %}du{% else %}le{% endif %} {{ event.start_day|date|frdate }} {% if event.start_time %} {% if not event.end_day or event.end_day == event.start_day %}{% if event.end_time %}de{% else %}à{% endif %}{% endif %} {{ event.start_time }} {% endif %} {% if event.end_day and event.end_day != event.start_day %} au {% if event.end_day and event.end_day != event.start_day %}{{ event.end_day|date|frdate }}{% endif %} {% endif %} {% if event.end_time %} {% if not event.end_day|date|frdate or event.end_day == event.start_day %}jusqu'à{% endif %} {{ event.end_time }}{% endif %}

    {{ event.description |linebreaks }}

    {% for tag in event.sorted_tags %} {{ tag | tag_button }} {% endfor %}

  • {% endfor %} {% if day.is_today_after_events %}
  • {% now "H:i" %}
  • {% endif %}
{% endif %}
{% endwith %} {% endwith %} {% endfor %}
{% if calendar.lastdate|shift_day:+1|not_after_last %} {% if calendar.lastdate|not_before_first %} {% if category %} {% else %} {% endif %} {% endif %} {% endif %}
{% cache 90000 footer_week user.is_authenticated calendar.firstdate category filter.get_url %} {% endcache %}
{% endcache %} {% endwith %} {% endblock %}