summaryrefslogtreecommitdiffstats
path: root/templates/activities/_event.html
blob: 81e9dd27624e445d7f1ba75ab774c91993b5e256 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{% load activity_tags %}

{% 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>
    {% include "activities/_post.html" with post=event.subject_post %}
{% 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>
    {% include "activities/_post.html" with post=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 %}