{% 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 %} {% 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 %}

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

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

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

{{ item }} {% if item.meta.object %} {{ utils.display_note(item.meta.object, ui=False, meta={'actor': item.meta.object_actor}) }} {% 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 %} {% endfor %} {{ utils.display_pagination(older_than, newer_than) }}
{% endblock %}