{%- import "utils.html" as utils with context -%} {% extends "layout.html" %} {% block head %} {{ local_actor.display_name }} - Notifications {% endblock %} {% block content %}

Notifications

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