mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-13 02:41:08 +00:00
24 lines
831 B
HTML
24 lines
831 B
HTML
{% load static %}
|
|
{% load activity_tags %}
|
|
<div class="post">
|
|
|
|
<time>
|
|
{% if event.published %}
|
|
{{ event.published | timedeltashort }}
|
|
{% else %}
|
|
{{ event.created | timedeltashort }}
|
|
{% endif %}
|
|
</time>
|
|
|
|
{% if event.type == "follow" %}
|
|
{{ event.subject_identity.name_or_handle }} followed you
|
|
{% elif event.type == "like" %}
|
|
{{ event.subject_identity.name_or_handle }} liked {{ event.subject_post }}
|
|
{% elif event.type == "mentioned" %}
|
|
{{ event.subject_post.author.name_or_handle }} mentioned you in {{ event.subject_post }}
|
|
{% elif event.type == "boosted" %}
|
|
{{ event.subject_identity.name_or_handle }} boosted your post {{ event.subject_post }}
|
|
{% else %}
|
|
Unknown event type {{event.type}}
|
|
{% endif %}
|
|
</div>
|