{% extends "agenda_culturel/page.html" %} {% block title %}{% block og_title %}Lieux{% endblock %}{% endblock %} {% load cache %} {% load utils_extra %} {% load static %} {% load cat_extra %} {% block entete_header %} {% css_categories %} {% endblock %} {% block fluid %}{% endblock %} {% block content %}
{% if perms.agenda_culturel.change_place %} {% endif %}

Les lieux

{% with cache_timeout=user.is_authenticated|yesno:"30,600" %} {% cache cache_timeout place_lists user.is_authenticated %} {% if object_list %} {% for place in object_list %}

{{ place.name }}{% picto_from_name "map" %}

  • Adresse : {% if place.address %}{{ place.address }}, {% endif %}{{ place.city }}
  • Coordonnée GPS : {{ place.location }}
  • {% with place.nb_events_future as nb %} {% if nb > 0 %}
  • {{ nb }} événement{{ nb|pluralize }} à venir
  • {% endif %} {% endwith %}
{% endfor %} {% else %}

Il n'y a aucun lieu défini.

{% endif %} {% endcache %} {% endwith %}
{% endblock %}