{% if alerts %} {% if user.alerts %}

{% trans alerts=user.alerts %}You have one new alert{% pluralize %}You have {{ alerts }} new alerts{% endtrans %}

{% else %}

{% trans %}Your Notifications{% endtrans %}

{% endif %} {% for alert in alerts %} {% endfor %}
{% if not user.alerts_date or alert.date > user.alerts_date %} {% else %} {% endif %} {{ (_(alert.message) % alert.vars())|safe }} {{ alert.date|reltimesince }}

{% trans %}All Notifications{% endtrans %} {% trans %}Close{% endtrans %}

{% else %}

{% trans %}Your Notifications{% endtrans %}

{% trans %}You have no recent notifications.{% endtrans %}

{% trans %}All Notifications{% endtrans %} {% trans %}Close{% endtrans %}

{% endif %}