microblog/app/templates/admin_outbox.html

32 lines
1.2 KiB
HTML
Raw Normal View History

2022-06-25 06:23:28 +00:00
{%- import "utils.html" as utils with context -%}
{% extends "layout.html" %}
{% block content %}
2022-06-28 18:10:25 +00:00
{{ utils.display_box_filters("admin_outbox") }}
2022-06-25 06:23:28 +00:00
{% for outbox_object in outbox %}
{% if outbox_object.ap_type == "Announce" %}
<div class="actor-action">You shared</div>
{{ utils.display_object(outbox_object.relates_to_anybox_object) }}
{% elif outbox_object.ap_type == "Like" %}
<div class="actor-action">You liked</div>
2022-06-25 06:23:28 +00:00
{{ utils.display_object(outbox_object.relates_to_anybox_object) }}
{% elif outbox_object.ap_type == "Follow" %}
<div class="actor-action">You followed</div>
{{ utils.display_actor(outbox_object.relates_to_actor, actors_metadata) }}
2022-06-25 06:23:28 +00:00
{% elif outbox_object.ap_type in ["Article", "Note", "Video"] %}
2022-07-02 08:33:20 +00:00
{% if outbox_object.is_deleted %}Deleted{% endif %}
2022-06-25 06:23:28 +00:00
{{ utils.display_object(outbox_object) }}
{% else %}
Implement {{ outbox_object.ap_type }}
{% endif %}
2022-06-25 06:23:28 +00:00
{% endfor %}
2022-06-28 18:10:25 +00:00
{% if next_cursor %}
<p><a href="{{ url_for("admin_outbox") }}?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 06:23:28 +00:00
{% endblock %}