HUGE cleanup
This commit is contained in:
@@ -8,26 +8,32 @@
|
||||
|
||||
<div id="notes">
|
||||
{% for item in inbox_data %}
|
||||
{% if item.type == 'Create' %}
|
||||
{{ utils.display_note(item, ui=True) }}
|
||||
{% if item | has_type('Create') %}
|
||||
{{ utils.display_note(item.activity.object, ui=True) }}
|
||||
{% else %}
|
||||
|
||||
{% if item.type == 'Announce' %}
|
||||
|
||||
{% if item | has_type('Announce') %}
|
||||
{% set boost_actor = item.activity.actor | get_actor %}
|
||||
<p style="margin-left:70px;padding-bottom:5px;"><span class="bar-item"><a style="color:#808080;" href="{{ boost_actor.url }}">{{ boost_actor.name or boost_actor.preferredUsername }}</a> boosted</span></p>
|
||||
{% if item.ref %}
|
||||
{{ utils.display_note(item.ref, ui=True) }}
|
||||
{% if item.meta.object %}
|
||||
{{ utils.display_note(item.meta.object, ui=True) }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if item.type == 'Follow' %}
|
||||
<p>{{ item.activity.actor }} followed you</p>
|
||||
{% elif item.type == 'Accept' %}
|
||||
<p>you followed {{ item.activity.actor }}</p>
|
||||
{% elif item.type == 'Undo' %}
|
||||
<p>{{ item.activity.actor }} unfollowed you</p>
|
||||
{% if item | has_type('Follow') %}
|
||||
<p style="margin-left:70px;padding-bottom:5px;"><span class="bar-item">new follower</span> <!-- <a href="" class="bar-item">follow back</a></p> -->
|
||||
<div style="height: 100px;">
|
||||
{{ utils.display_actor_inline(item.activity.actor | get_actor, size=50) }}
|
||||
</div>
|
||||
|
||||
{% elif item | has_type('Accept') %}
|
||||
<p style="margin-left:70px;padding-bottom:5px;"><span class="bar-item">you started following</span></p>
|
||||
<div style="height: 100px;">
|
||||
{{ utils.display_actor_inline(item.activity.actor | get_actor, size=50) }}
|
||||
</div>
|
||||
|
||||
{% else %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user