microblog.pub/app/templates/object.html

23 lines
544 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 %}
{% include "header.html" %}
2022-06-24 21:09:37 +00:00
{% macro display_replies_tree(replies_tree_node) %}
2022-06-25 08:20:07 +00:00
{% if replies_tree_node.is_requested %}
{{ utils.display_object_expanded(replies_tree_node.ap_object) }}
{% else %}
{{ utils.display_object(replies_tree_node.ap_object) }}
{% endif %}
2022-06-24 21:09:37 +00:00
{% for child in replies_tree_node.children %}
{{ display_replies_tree(child) }}
{% endfor %}
{% endmacro %}
{{ display_replies_tree(replies_tree) }}
2022-06-22 18:11:22 +00:00
{% endblock %}