microblog/app/templates/admin_stream.html

21 lines
734 B
HTML
Raw Normal View History

2022-06-22 18:11:22 +00:00
{%- import "utils.html" as utils with context -%}
{% extends "layout.html" %}
{% block content %}
{% for inbox_object in stream %}
{% if inbox_object.ap_type == "Announce" %}
2022-06-25 06:23:28 +00:00
{{ utils.display_object(inbox_object.relates_to_anybox_object) }}
{% elif inbox_object.ap_type in ["Article", "Note", "Video"] %}
{{ utils.display_object(inbox_object) }}
{% if inbox_object.liked_via_outbox_object_ap_id %}
{{ utils.admin_undo_button(inbox_object.liked_via_outbox_object_ap_id, "Unlike") }}
2022-06-22 18:11:22 +00:00
{% else %}
2022-06-25 06:23:28 +00:00
{{ utils.admin_like_button(inbox_object.ap_id) }}
2022-06-22 18:11:22 +00:00
{% endif %}
2022-06-25 06:23:28 +00:00
{{ utils.admin_announce_button(inbox_object.ap_id) }}
{{ utils.admin_reply_button(inbox_object.ap_id) }}
2022-06-22 18:11:22 +00:00
{% endif %}
{% endfor %}
{% endblock %}