{% extends "layouts/base.html" %} {% block title %}Annonces{% endblock %} {% block content %} {% if can_publish %}Publier une annonce{% endif %} {% if page.object_list %}
{% for a in page %}
{% if a.scope == "NATIONAL" %}Réseau national{% else %}{{ a.agency.name }}{% endif %}{% if a.is_live %}En ligne{% else %}Expirée{% endif %}

{{ a.title }}

{{ a.body|linebreaksbr }}

{{ a.created_by.get_full_name|default:"Système" }} · {{ a.starts_at|date:"d/m/Y" }}{% if a.ends_at %} → {{ a.ends_at|date:"d/m/Y" }}{% endif %}

{% endfor %}
{% else %}
{% if can_publish %}Publier une annonce{% endif %}
{% endif %} {% endblock %}