{% 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" %}
{% if request.path == url_for('admin_notifications') and unread_notifications_count %}
{% endif %}
{% for item in inbox_data %} {% 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 {% if request.path == url_for('admin_notifications') %} {% if item.meta.notification_unread %}new{% endif %} {{ (item.activity.published or item.meta.published) | format_timeago }} {% endif %}
{% 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.notification_unread %}new{% endif %} {{ (item.activity.published or item.meta.published) | format_timeago }}
{% if item.meta.object %} {{ utils.display_note(item.meta.object, ui=False, meta=item.meta) }} {% endif %} {% endif %} {% if item | has_type('Follow') %}
new follower {% if item.meta.notification_unread %}new{% endif %} {{ (item.activity.published or item.meta.published) | format_timeago }} {% if item.meta.notification_follows_back %}already following {% else %}
{% endif %}
{{ utils.display_actor_inline(item.meta.actor, size=50) }}
{% elif item | has_type('Accept') %}
you started following {% if item.meta.notification_unread %}new{% endif %} {{ (item.activity.published or item.meta.published) | format_timeago }} {% if item.meta.notification_follows_back %}follows you back{% endif %}
{{ utils.display_actor_inline(item.meta.actor, size=50) }}
{% elif item | has_type('Undo') %}
unfollowed you {% if item.meta.notification_unread %}new{% endif %} {{ (item.activity.published or item.meta.published) | format_timeago }}
{{ 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 %}