{% extends "base" %} {% import "macros" as macros %} {% block title %} {{ "Notifications" | _ }} {% endblock title %} {% block content %}

{{ "Notifications" | _ }}

{% for notification in notifications %}
{% if notification.kind == "COMMENT" %}

{{ "{{ user }} commented your article." | _(user=notification.object.user.display_name | escape) }}

{{ notification.object.post.post.title }}

{{ notification.creation_date | date(format="%B %e, %H:%m") }}

{% elif notification.kind == "FOLLOW" %}

{{ "{{ user }} is now following you." | _(user=notification.object.follower.display_name | escape) }}

{{ notification.creation_date | date(format="%B %e, %H:%m") }}

{% elif notification.kind == "LIKE" %}

{{ "{{ user }} liked your article." | _(user=notification.object.user.display_name | escape) }}

{{ notification.object.post.post.title }}

{{ notification.creation_date | date(format="%B %e, %H:%m") }}

{% elif notification.kind == "MENTION" %}

{{ "{{ user }} mentioned you." | _(user=notification.object.user.display_name | escape) }}

{{ notification.creation_date | date(format="%B %e, %H:%m") }}

{% elif notification.kind == "RESHARE" %}

{{ "{{ user }} reshared your article." | _(user=notification.object.user.display_name | escape) }}

{{ notification.object.post.post.title }}

{{ notification.creation_date | date(format="%B %e, %H:%m") }}

{% endif %}
{% endfor %}
{{ macros::paginate(page=page, total=n_pages) }} {% endblock content %}