{%- import "utils.html" as utils with context -%} {% extends "layout.html" %} {% block content %}

Notifications

{%- for notif in notifications %}
{%- if notif.notification_type.value == "new_follower" %}
{{ notif.actor.name or notif.actor.preferred_username }} followed you
{{ utils.display_actor(notif.actor, actors_metadata) }} {% elif notif.notification_type.value == "unfollow" %}
{{ notif.actor.name or notif.actor.preferred_username }} unfollowed you
{{ utils.display_actor(notif.actor, actors_metadata) }} {% elif notif.notification_type.value == "like" %}
{{ notif.actor.name or notif.actor.preferred_username }} liked a post
{{ utils.display_object(notif.outbox_object) }} {% elif notif.notification_type.value == "undo_like" %}
{{ notif.actor.name or notif.actor.preferred_username }} un-liked a post
{{ utils.display_object(notif.outbox_object) }} {% elif notif.notification_type.value == "announce" %}
{{ notif.actor.name or notif.actor.preferred_username }} boosted a post
{{ utils.display_object(notif.outbox_object) }} {% elif notif.notification_type.value == "undo_announce" %}
{{ notif.actor.name or notif.actor.preferred_username }} un-boosted a post
{{ utils.display_object(notif.outbox_object) }} {% else %} {{ notif }} {%- endif %}
{%- endfor %}
{% endblock %}