{%- 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 == "follow_request_accepted" %}
{{ notif.actor.display_name }} accepted your follow request
{{ utils.display_actor(notif.actor, actors_metadata) }} {%- elif notif.notification_type.value == "follow_request_rejected" %}
{{ notif.actor.display_name }} rejected your follow request
{{ utils.display_actor(notif.actor, actors_metadata) }} {% elif notif.notification_type.value == "like" %} {{ utils.display_object(notif.outbox_object) }} {% elif notif.notification_type.value == "undo_like" %} {{ utils.display_object(notif.outbox_object) }} {% elif notif.notification_type.value == "announce" %} {{ 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" %} {{ utils.display_object(notif.inbox_object) }} {% elif notif.notification_type.value == "new_webmention" %}
new webmention from {% set facepile_item = notif.webmention.as_facepile_item %} {% if facepile_item %} {{ facepile_item.actor_name }} {% endif %} {{ notif.webmention.source }}
{{ utils.display_object(notif.outbox_object) }} {% elif notif.notification_type.value == "updated_webmention" %}
updated webmention from {% set facepile_item = notif.webmention.as_facepile_item %} {% if facepile_item %} {{ facepile_item.actor_name }} {% endif %} {{ notif.webmention.source }}
{{ utils.display_object(notif.outbox_object) }} {% elif notif.notification_type.value == "deleted_webmention" %}
deleted webmention from {% set facepile_item = notif.webmention.as_facepile_item %} {% if facepile_item %} {{ facepile_item.actor_name }} {% endif %} {{ notif.webmention.source }}
{{ utils.display_object(notif.outbox_object) }} {% else %}
Implement {{ notif.notification_type }}
{%- endif %}
{%- endfor %}
{% endblock %}