2022-11-13 17:42:47 -08:00
|
|
|
{% load activity_tags %}
|
|
|
|
|
2022-11-17 17:52:00 -08:00
|
|
|
{% if event.type == "followed" %}
|
|
|
|
<div class="follow-banner">
|
|
|
|
<a href="{{ event.subject_identity.urls.view }}">
|
|
|
|
{{ event.subject_identity.name_or_handle }}
|
|
|
|
</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 }}">
|
|
|
|
{{ event.subject_identity.name_or_handle }}
|
|
|
|
</a> liked your post
|
|
|
|
</div>
|
2022-11-28 21:42:40 -08:00
|
|
|
{% if not event.collapsed %}
|
2022-11-17 17:52:00 -08:00
|
|
|
{% include "activities/_post.html" with post=event.subject_post %}
|
2022-11-28 21:42:40 -08:00
|
|
|
{% endif %}
|
2022-11-17 17:52:00 -08:00
|
|
|
{% elif event.type == "mentioned" %}
|
|
|
|
<div class="mention-banner">
|
|
|
|
<a href="{{ event.subject_identity.urls.view }}">
|
|
|
|
{{ event.subject_identity.name_or_handle }}
|
|
|
|
</a> mentioned you
|
|
|
|
</div>
|
2022-11-28 21:42:40 -08:00
|
|
|
{% if not event.collapsed %}
|
2022-11-17 17:52:00 -08:00
|
|
|
{% include "activities/_post.html" with post=event.subject_post %}
|
2022-11-28 21:42:40 -08:00
|
|
|
{% endif %}
|
2022-11-17 17:52:00 -08:00
|
|
|
{% elif event.type == "boosted" %}
|
2022-11-22 17:59:51 -08:00
|
|
|
<div class="boost-banner">
|
|
|
|
<a href="{{ event.subject_identity.urls.view }}">
|
|
|
|
{{ event.subject_identity.name_or_handle }}
|
|
|
|
</a> boosted your post
|
|
|
|
</div>
|
2022-11-28 21:42:40 -08:00
|
|
|
{% if not event.collapsed %}
|
2022-11-22 17:59:51 -08:00
|
|
|
{% include "activities/_post.html" with post=event.subject_post %}
|
2022-11-28 21:42:40 -08:00
|
|
|
{% endif %}
|
2022-11-17 17:52:00 -08:00
|
|
|
{% else %}
|
|
|
|
Unknown event type {{event.type}}
|
|
|
|
{% endif %}
|