{% extends "base.html" %} {% load i18n %} {% load static %} {% load roles %} {% load mention_tags %} {% block head %} {% endblock %} {% block content %}
{% if unread_count > 0 %}
{% csrf_token %}
{% endif %} {% if user.config|has_any_role:"admin" %} {% translate "Nouvelle notification" %} {% endif %}
{% translate "Paramètres" %}
{% if filter_type or show_archived %} {% endif %}
{% if notifications %}
{% for item in notifications %} {% with notif=item.notification %}
{{ notif.title }} {% if not item.is_read and not item.is_archived %} {% translate "Nouveau" %} {% endif %}
{% if not item.is_read %}
{% endif %} {% if item.recipient_type == 'personal' and not item.is_archived %} {% endif %}
{% if notif.content %}

{{ notif.content|linebreaksbr }}

{% endif %}
{{ notif.get_notification_type_display }} {% if item.team_name %} {{ item.team_name }} {% endif %} {% if notif.source_app %} {{ notif.source_app }} {% endif %} {{ notif.created_at|date:"d/m/Y H:i" }} {% if notif.sender %} {{ notif.sender.get_full_name|default:notif.sender.username }} {% endif %} {% if notif.expires_at %} {% translate "Expire le" %} {{ notif.expires_at|date:"d/m/Y H:i" }} {% endif %} {% if notif.action_url and notif.action_url != request.path and notif.action_url != '/notifications/' and notif.action_url != '/notifications' %} {{ notif.action_label|default:notif.action_url }} {% endif %}
{% with attachments=notif.attachments.all %} {% if attachments %}
{% for att in attachments %} {% if att.is_image %} {{ att.name }} {% else %} {{ att.name }} {% endif %} {% endfor %}
{% endif %} {% endwith %}
{% endwith %} {% endfor %}
{% else %}

{% if show_archived %} {% translate "Aucune notification archivée." %} {% else %} {% translate "Vous n'avez aucune notification." %} {% endif %}

{% endif %}
{% if not discussion_items %}

{% translate "Vous n'avez encore aucune discussion." %}

{% else %} {% endif %}
{% include "notifications/_new_discussion_modal.html" %} {% endblock content %} {% block script %} {% endblock script %}