summaryrefslogtreecommitdiffstats
path: root/templates/activities/_event.html
blob: bbe0ae52c52359d44c2fc79ad8be2929bbf848e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{% 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>