2022-06-22 13:11:22 -05:00
|
|
|
{%- import "utils.html" as utils with context -%}
|
|
|
|
{% extends "layout.html" %}
|
2022-07-15 13:01:55 -05:00
|
|
|
|
|
|
|
{% block head %}
|
|
|
|
<title>{{ local_actor.display_name }} - Notifications</title>
|
|
|
|
{% endblock %}
|
|
|
|
|
2022-06-22 13:11:22 -05:00
|
|
|
{% block content %}
|
2022-07-09 01:15:33 -05:00
|
|
|
<div class="box">
|
2022-06-22 13:11:22 -05:00
|
|
|
<h2>Notifications</h2>
|
2022-07-09 01:15:33 -05:00
|
|
|
</div>
|
2022-06-22 13:11:22 -05:00
|
|
|
<div id="notifications">
|
|
|
|
{%- for notif in notifications %}
|
|
|
|
<div>
|
|
|
|
{%- if notif.notification_type.value == "new_follower" %}
|
2022-07-09 01:15:33 -05:00
|
|
|
<div class="actor-action" title="{{ notif.created_at.isoformat() }}">
|
2022-06-26 03:55:53 -05:00
|
|
|
<a style="font-weight:bold;" href="{{ notif.actor.url }}">{{ notif.actor.display_name }}</a> followed you
|
2022-06-22 13:11:22 -05:00
|
|
|
</div>
|
|
|
|
{{ utils.display_actor(notif.actor, actors_metadata) }}
|
|
|
|
{% elif notif.notification_type.value == "unfollow" %}
|
2022-07-09 01:15:33 -05:00
|
|
|
<div class="actor-action" title="{{ notif.created_at.isoformat() }}">
|
2022-06-26 03:55:53 -05:00
|
|
|
<a style="font-weight:bold;" href="{{ notif.actor.url }}">{{ notif.actor.display_name }}</a> unfollowed you
|
2022-06-22 13:11:22 -05:00
|
|
|
</div>
|
|
|
|
{{ utils.display_actor(notif.actor, actors_metadata) }}
|
|
|
|
{% elif notif.notification_type.value == "like" %}
|
2022-07-21 14:56:59 -05:00
|
|
|
<div class="actor-action" title="{{ notif.created_at.isoformat() }}">
|
2022-06-26 03:55:53 -05:00
|
|
|
<a style="font-weight:bold;" href="{{ notif.actor.url }}">{{ notif.actor.display_name }}</a> liked a post
|
2022-06-22 13:11:22 -05:00
|
|
|
</div>
|
|
|
|
{{ utils.display_object(notif.outbox_object) }}
|
|
|
|
{% elif notif.notification_type.value == "undo_like" %}
|
2022-07-09 01:15:33 -05:00
|
|
|
<div class="actor-action" title="{{ notif.created_at.isoformat() }}">
|
2022-06-26 03:55:53 -05:00
|
|
|
<a style="font-weight:bold;" href="{{ notif.actor.url }}">{{ notif.actor.display_name }}</a> un-liked a post
|
2022-06-22 13:11:22 -05:00
|
|
|
</div>
|
|
|
|
{{ utils.display_object(notif.outbox_object) }}
|
|
|
|
{% elif notif.notification_type.value == "announce" %}
|
2022-07-09 01:15:33 -05:00
|
|
|
<div class="actor-action" title="{{ notif.created_at.isoformat() }}">
|
2022-06-26 03:55:53 -05:00
|
|
|
<a style="font-weight:bold;" href="{{ notif.actor.url }}">{{ notif.actor.display_name }}</a> boosted a post
|
2022-06-22 13:11:22 -05:00
|
|
|
</div>
|
|
|
|
{{ utils.display_object(notif.outbox_object) }}
|
|
|
|
{% elif notif.notification_type.value == "undo_announce" %}
|
2022-07-09 01:15:33 -05:00
|
|
|
<div class="actor-action" title="{{ notif.created_at.isoformat() }}">
|
2022-06-26 03:55:53 -05:00
|
|
|
<a style="font-weight:bold;" href="{{ notif.actor.url }}">{{ notif.actor.display_name }}</a> un-boosted a post
|
2022-06-22 13:11:22 -05:00
|
|
|
</div>
|
|
|
|
{{ utils.display_object(notif.outbox_object) }}
|
2022-06-26 03:55:53 -05:00
|
|
|
{% elif notif.notification_type.value == "mention" %}
|
2022-07-09 01:15:33 -05:00
|
|
|
<div class="actor-action" title="{{ notif.created_at.isoformat() }}">
|
2022-06-26 03:55:53 -05:00
|
|
|
<a style="font-weight:bold;" href="{{ notif.actor.url }}">{{ notif.actor.display_name }}</a> mentioned you
|
|
|
|
</div>
|
|
|
|
{{ utils.display_object(notif.inbox_object) }}
|
2022-07-19 13:38:32 -05:00
|
|
|
{% elif notif.notification_type.value == "new_webmention" %}
|
|
|
|
<div class="actor-action" title="{{ notif.created_at.isoformat() }}">
|
|
|
|
new webmention from
|
|
|
|
{% set facepile_item = notif.webmention.as_facepile_item %}
|
|
|
|
{% if facepile_item %}
|
|
|
|
<a href="{{ facepile_item.actor_url }}">{{ facepile_item.actor_name }}</a>
|
|
|
|
{% endif %}
|
|
|
|
<a style="font-weight:bold;" href="{{ notif.webmention.source }}">{{ notif.webmention.source }}</a>
|
|
|
|
</div>
|
|
|
|
{{ utils.display_object(notif.outbox_object) }}
|
|
|
|
{% elif notif.notification_type.value == "updated_webmention" %}
|
|
|
|
<div class="actor-action" title="{{ notif.created_at.isoformat() }}">
|
|
|
|
updated webmention from
|
|
|
|
{% set facepile_item = notif.webmention.as_facepile_item %}
|
|
|
|
{% if facepile_item %}
|
|
|
|
<a href="{{ facepile_item.actor_url }}">{{ facepile_item.actor_name }}</a>
|
|
|
|
{% endif %}
|
|
|
|
<a style="font-weight:bold;" href="{{ notif.webmention.source }}">{{ notif.webmention.source }}</a>
|
|
|
|
</div>
|
|
|
|
{{ utils.display_object(notif.outbox_object) }}
|
|
|
|
{% elif notif.notification_type.value == "deleted_webmention" %}
|
|
|
|
<div class="actor-action" title="{{ notif.created_at.isoformat() }}">
|
|
|
|
deleted webmention from
|
|
|
|
{% set facepile_item = notif.webmention.as_facepile_item %}
|
|
|
|
{% if facepile_item %}
|
|
|
|
<a href="{{ facepile_item.actor_url }}">{{ facepile_item.actor_name }}</a>
|
|
|
|
{% endif %}
|
|
|
|
<a style="font-weight:bold;" href="{{ notif.webmention.source }}">{{ notif.webmention.source }}</a>
|
|
|
|
</div>
|
|
|
|
{{ utils.display_object(notif.outbox_object) }}
|
2022-06-22 13:11:22 -05:00
|
|
|
{% else %}
|
2022-07-09 01:15:33 -05:00
|
|
|
<div class="actor-action">
|
|
|
|
Implement {{ notif.notification_type }}
|
|
|
|
</div>
|
2022-06-22 13:11:22 -05:00
|
|
|
{%- endif %}
|
|
|
|
</div>
|
|
|
|
{%- endfor %}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|