{% 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 calendar "week" %} {% endcache %} {% endblock %} {% block when_parameters %}{{ filter.get_url }}{% 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 %}
{% 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 %}
{% if day.is_school_vacation or calendar.has_school_vacation %}
{% for p in day.periods %} {% if p.periodtype == "school vacations" %}{{ p.name }}{% endif %} {% endfor %}
{% endif %}

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

{% if day.is_public_holiday %}
{% for p in day.periods %} {% if p.periodtype == "public holidays" %}{{ p.name }}{% endif %} {% endfor %}
{% endif %}
{% for ti in day.get_time_intervals %} {% if ti.events|length > 0 %} {% if not forloop.first %}

{{ ti.short_name }}

{% endif %}
    {% for event in ti.events %} {% if event.is_first_after_now %}
  • {% now "H:i" %}
  • {% endif %}
  • {{ event.category | circle_cat_picto: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 }}

    {{ 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|tw_highlight }} {% endfor %}

  • {% endfor %}
{% endif %} {% endfor %} {% if day.is_today_after_events %}
  • {% now "H:i" %}
{% endif %}
{% endwith %} {% endwith %} {% endfor %}
{% cache 90000 footer_week user.is_authenticated calendar.firstdate category filter.get_url %} {% endcache %}
{% endcache %} {% endwith %} {% endblock %}