This repository has been archived on 2023-09-24. You can view files and clone it, but cannot push or open issues or pull requests.
takahe/templates/activities/_event.html

40 lines
1.4 KiB
HTML
Raw Normal View History

2022-11-14 02:42:47 +01:00
{% load activity_tags %}
2022-11-18 02:52:00 +01:00
{% if event.type == "followed" %}
<div class="follow-banner">
<a href="{{ event.subject_identity.urls.view }}">
2022-12-15 08:50:54 +01:00
{{ event.subject_identity.html_name_or_handle }}
2022-11-18 02:52:00 +01: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 08:50:54 +01:00
{{ event.subject_identity.html_name_or_handle }}
2022-11-18 02:52:00 +01:00
</a> liked your post
</div>
{% if not event.collapsed %}
2022-11-18 02:52:00 +01:00
{% include "activities/_post.html" with post=event.subject_post %}
{% endif %}
2022-11-18 02:52:00 +01:00
{% elif event.type == "mentioned" %}
<div class="mention-banner">
<a href="{{ event.subject_identity.urls.view }}">
2022-12-15 08:50:54 +01:00
{{ event.subject_identity.html_name_or_handle }}
2022-11-18 02:52:00 +01:00
</a> mentioned you
</div>
{% if not event.collapsed %}
2022-11-18 02:52:00 +01:00
{% include "activities/_post.html" with post=event.subject_post %}
{% endif %}
2022-11-18 02:52:00 +01:00
{% elif event.type == "boosted" %}
2022-11-23 02:59:51 +01:00
<div class="boost-banner">
<a href="{{ event.subject_identity.urls.view }}">
2022-12-15 08:50:54 +01:00
{{ event.subject_identity.html_name_or_handle }}
2022-11-23 02:59:51 +01:00
</a> boosted your post
</div>
{% if not event.collapsed %}
2022-11-23 02:59:51 +01:00
{% include "activities/_post.html" with post=event.subject_post %}
{% endif %}
2022-11-18 02:52:00 +01:00
{% else %}
Unknown event type {{event.type}}
{% endif %}