takahe/templates/activities/_event.html

21 lines
559 B
HTML
Raw Normal View History

2022-11-14 01:42:47 +00:00
{% 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 }}
{% else %}
Unknown event type {{event.type}}
{% endif %}
</div>