2022-11-14 01:42:47 +00:00
|
|
|
{% load activity_tags %}
|
|
|
|
|
2022-11-18 01:52:00 +00:00
|
|
|
{% if event.type == "followed" %}
|
|
|
|
<div class="follow-banner">
|
|
|
|
<a href="{{ event.subject_identity.urls.view }}">
|
2022-12-15 07:50:54 +00:00
|
|
|
{{ event.subject_identity.html_name_or_handle }}
|
2022-11-18 01:52:00 +00:00
|
|
|
</a> followed you
|
|
|
|
</div>
|
|
|
|
{% include "activities/_identity.html" with identity=event.subject_identity created=event.created %}
|
|
|
|
{% elif event.type == "liked" %}
|
|
|
|
<div class="like-banner">
|
|
|
|
<a href="{{ event.subject_identity.urls.view }}">
|
2022-12-15 07:50:54 +00:00
|
|
|
{{ event.subject_identity.html_name_or_handle }}
|
2022-11-18 01:52:00 +00:00
|
|
|
</a> liked your post
|
|
|
|
</div>
|
2022-11-29 05:42:40 +00:00
|
|
|
{% if not event.collapsed %}
|
2023-01-09 16:58:17 +00:00
|
|
|
{% include "activities/_post.html" with post=event.subject_post %}
|
2022-11-29 05:42:40 +00:00
|
|
|
{% endif %}
|
2022-11-18 01:52:00 +00:00
|
|
|
{% elif event.type == "mentioned" %}
|
|
|
|
<div class="mention-banner">
|
|
|
|
<a href="{{ event.subject_identity.urls.view }}">
|
2022-12-15 07:50:54 +00:00
|
|
|
{{ event.subject_identity.html_name_or_handle }}
|
2022-11-18 01:52:00 +00:00
|
|
|
</a> mentioned you
|
|
|
|
</div>
|
2022-11-29 05:42:40 +00:00
|
|
|
{% if not event.collapsed %}
|
2023-01-09 16:58:17 +00:00
|
|
|
{% include "activities/_post.html" with post=event.subject_post %}
|
2022-11-29 05:42:40 +00:00
|
|
|
{% endif %}
|
2022-11-18 01:52:00 +00:00
|
|
|
{% elif event.type == "boosted" %}
|
2022-11-23 01:59:51 +00:00
|
|
|
<div class="boost-banner">
|
|
|
|
<a href="{{ event.subject_identity.urls.view }}">
|
2022-12-15 07:50:54 +00:00
|
|
|
{{ event.subject_identity.html_name_or_handle }}
|
2022-11-23 01:59:51 +00:00
|
|
|
</a> boosted your post
|
|
|
|
</div>
|
2022-11-29 05:42:40 +00:00
|
|
|
{% if not event.collapsed %}
|
2023-01-09 16:58:17 +00:00
|
|
|
{% include "activities/_post.html" with post=event.subject_post event=event %}
|
2022-11-29 05:42:40 +00:00
|
|
|
{% endif %}
|
2023-01-15 21:48:17 +00:00
|
|
|
{% elif event.type == "identity_created" %}
|
|
|
|
<div class="follow-banner">
|
|
|
|
<a href="{{ event.subject_identity.urls.view }}">
|
|
|
|
{{ event.subject_identity.html_name_or_handle }}
|
|
|
|
</a> was just created
|
|
|
|
</div>
|
|
|
|
{% include "activities/_identity.html" with identity=event.subject_identity created=event.created %}
|
2022-11-18 01:52:00 +00:00
|
|
|
{% else %}
|
2023-01-14 17:32:48 +00:00
|
|
|
Unknown event type {{ event.type }}
|
2022-11-18 01:52:00 +00:00
|
|
|
{% endif %}
|