2022-06-22 18:11:22 +00:00
|
|
|
{%- import "utils.html" as utils with context -%}
|
|
|
|
{% extends "layout.html" %}
|
|
|
|
{% block content %}
|
|
|
|
<h2>Notifications</h2>
|
|
|
|
<div id="notifications">
|
|
|
|
{%- for notif in notifications %}
|
|
|
|
<div>
|
|
|
|
{%- if notif.notification_type.value == "new_follower" %}
|
|
|
|
<div title="{{ notif.created_at.isoformat() }}">
|
2022-06-26 08:55:53 +00:00
|
|
|
<a style="font-weight:bold;" href="{{ notif.actor.url }}">{{ notif.actor.display_name }}</a> followed you
|
2022-06-22 18:11:22 +00:00
|
|
|
</div>
|
|
|
|
{{ utils.display_actor(notif.actor, actors_metadata) }}
|
|
|
|
{% elif notif.notification_type.value == "unfollow" %}
|
|
|
|
<div title="{{ notif.created_at.isoformat() }}">
|
2022-06-26 08:55:53 +00:00
|
|
|
<a style="font-weight:bold;" href="{{ notif.actor.url }}">{{ notif.actor.display_name }}</a> unfollowed you
|
2022-06-22 18:11:22 +00:00
|
|
|
</div>
|
|
|
|
{{ utils.display_actor(notif.actor, actors_metadata) }}
|
|
|
|
{% elif notif.notification_type.value == "like" %}
|
|
|
|
<div title="{{ notif.created_at.isoformat() }}">
|
2022-06-26 08:55:53 +00:00
|
|
|
<a style="font-weight:bold;" href="{{ notif.actor.url }}">{{ notif.actor.display_name }}</a> liked a post
|
2022-06-22 18:11:22 +00:00
|
|
|
</div>
|
|
|
|
{{ utils.display_object(notif.outbox_object) }}
|
|
|
|
{% elif notif.notification_type.value == "undo_like" %}
|
|
|
|
<div title="{{ notif.created_at.isoformat() }}">
|
2022-06-26 08:55:53 +00:00
|
|
|
<a style="font-weight:bold;" href="{{ notif.actor.url }}">{{ notif.actor.display_name }}</a> un-liked a post
|
2022-06-22 18:11:22 +00:00
|
|
|
</div>
|
|
|
|
{{ utils.display_object(notif.outbox_object) }}
|
|
|
|
{% elif notif.notification_type.value == "announce" %}
|
|
|
|
<div title="{{ notif.created_at.isoformat() }}">
|
2022-06-26 08:55:53 +00:00
|
|
|
<a style="font-weight:bold;" href="{{ notif.actor.url }}">{{ notif.actor.display_name }}</a> boosted a post
|
2022-06-22 18:11:22 +00:00
|
|
|
</div>
|
|
|
|
{{ utils.display_object(notif.outbox_object) }}
|
|
|
|
{% elif notif.notification_type.value == "undo_announce" %}
|
|
|
|
<div title="{{ notif.created_at.isoformat() }}">
|
2022-06-26 08:55:53 +00:00
|
|
|
<a style="font-weight:bold;" href="{{ notif.actor.url }}">{{ notif.actor.display_name }}</a> un-boosted a post
|
2022-06-22 18:11:22 +00:00
|
|
|
</div>
|
|
|
|
{{ utils.display_object(notif.outbox_object) }}
|
2022-06-26 08:55:53 +00:00
|
|
|
{% elif notif.notification_type.value == "mention" %}
|
|
|
|
<div title="{{ notif.created_at.isoformat() }}">
|
|
|
|
<a style="font-weight:bold;" href="{{ notif.actor.url }}">{{ notif.actor.display_name }}</a> mentioned you
|
|
|
|
</div>
|
|
|
|
{{ utils.display_object(notif.inbox_object) }}
|
|
|
|
|
2022-06-22 18:11:22 +00:00
|
|
|
{% else %}
|
2022-06-26 08:55:53 +00:00
|
|
|
Implement {{ notif.notification_type }}
|
2022-06-22 18:11:22 +00:00
|
|
|
{%- endif %}
|
|
|
|
</div>
|
|
|
|
{%- endfor %}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|