{% load i18n humanize %} {% with new_notifications|length as num_notifications %} {% if num_notifications == 0 %}

Vous n'avez pas de nouvelle notification

{% else %}

Vous avez {{num_notifications}} nouvelle{{num_notifications|pluralize}} notification{{num_notifications|pluralize}}

{% endif %} {% endwith %}
{% for notification in notifications %}

{{ notification.start_timestamp|naturaltime }}

{% if notification.url %}{{ notification.summary }} {% else %}{{ notification.summary }}{% endif %}

{{ notification.body|linebreaks }}
{% endfor %}