{% extends "layout.html" %} {% import 'utils.html' as utils %} {% block title %}{% if request.path == url_for('admin_stream') %}Stream{% else %}Notifications{% endif %} - {{ config.NAME }}{% endblock %} {% block content %}
{% include "header.html" %}
{% for item in inbox_data %} {{ item }} {% if 'actor' in item.meta %} {% if item | has_type('Create') %} {{ utils.display_note(item.activity.object, ui=True, meta=item.meta) }} {% else %} {% if item | has_type('Announce') %} {% set boost_actor = item.meta.actor %} {% if boost_actor %}

{{ boost_actor.name or boost_actor.preferredUsername }} boosted

{% endif %} {% if item.meta.object %} {{ utils.display_note(item.meta.object, ui=True, meta=item.meta) }} {% endif %} {% endif %} {% if item | has_type('Like') %} {% set boost_actor = item.meta.actor %}

{{ boost_actor.name or boost_actor.preferredUsername }} liked

{% if item.meta.object %} {{ utils.display_note(item.meta.object, ui=False, meta=item.meta) }} {% endif %} {% endif %} {% if item | has_type('Follow') %}

new follower

{{ utils.display_actor_inline(item.meta.actor, size=50) }}
{% elif item | has_type('Accept') %}

you started following

{{ utils.display_actor_inline(item.meta.actor, size=50) }}
{% elif item | has_type('Undo') %}

unfollowed you

{{ utils.display_actor_inline(item.meta.actor, size=50) }}
{% else %} {% endif %} {% endif %} {% else %} {% if item | has_type('question_ended') %}

poll ended

{{ utils.display_note(item.activity, meta={"object_visibility": "PUBLIC"}) }} {% endif %} {% endif %} {% endfor %} {{ utils.display_pagination(older_than, newer_than) }}
{% endblock %}