{% load i18n %} {% for n in notifications %}
{% url "spirit:user:detail" pk=n.comment.user.pk slug=n.comment.user.st.slug as url_profile %} {% url "spirit:comment:find" pk=n.comment.pk as url_topic %} {% if n.is_comment %} {% blocktrans trimmed with username=n.comment.user.st.nickname topic_title=n.topic.title %} {{ username }} has commented on {{ topic_title }} {% endblocktrans %} {% elif n.is_mention %} {% blocktrans trimmed with username=n.comment.user.st.nickname topic_title=n.topic.title %} {{ username }} has mention you on {{ topic_title }} {% endblocktrans %} {% else %} Unknow action {% endif %} {% if not n.is_read %} {% trans "unread" %} {% endif %}
{% empty %}

{% trans "There are no notifications, yet" %}

{% endfor %}