microblog.pub/app/templates/admin_inbox.html

28 lines
984 B
HTML
Raw Normal View History

2022-06-25 01:23:28 -05:00
{%- import "utils.html" as utils with context -%}
{% extends "layout.html" %}
{% block content %}
2022-06-28 13:10:25 -05:00
{{ utils.display_box_filters("admin_inbox") }}
2022-06-25 01:23:28 -05:00
{% for inbox_object in inbox %}
{% if inbox_object.ap_type == "Announce" %}
{{ utils.display_object(inbox_object.relates_to_anybox_object) }}
{% elif inbox_object.ap_type in ["Article", "Note", "Video"] %}
{{ utils.display_object(inbox_object) }}
2022-06-25 03:20:07 -05:00
{% elif inbox_object.ap_type == "Follow" %}
2022-06-28 14:10:22 -05:00
<div class="actor-action">
{{ inbox_object.actor.display_name }} followed you
<span>{{ inbox_object.ap_published_at | timeago }}</span>
</div>
{{ utils.display_actor(inbox_object.actor, actors_metadata) }}
2022-06-25 01:23:28 -05:00
{% else %}
Implement {{ inbox_object.ap_type }}
{% endif %}
{% endfor %}
2022-06-28 13:10:25 -05:00
{% if next_cursor %}
<p><a href="{{ url_for("admin_inbox") }}?cursor={{ next_cursor }}{% if request.query_params.filter_by %}&filter_by={{ request.query_params.filter_by }}{% endif %}">See more</a></p>
{% endif %}
2022-06-25 01:23:28 -05:00
{% endblock %}