diff --git a/data/templates/object.html b/data/templates/object.html index d89accb..893ed67 100644 --- a/data/templates/object.html +++ b/data/templates/object.html @@ -23,34 +23,39 @@ {% endblock %} {% block content %} - -{% if outbox_object %} -{% include "header.html" %} -{% endif %} - -{% macro display_replies_tree(replies_tree_node) %} - -{% if replies_tree_node.is_requested %} -{{ utils.display_object(replies_tree_node.ap_object, likes=likes, shares=shares, webmentions=webmentions, expanded=not replies_tree_node.is_root, is_object_page=True, is_h_entry=False) }} -{% else %} - {% if replies_tree_node.wm_reply %} - {# u-comment h-cite is displayed by default for webmention #} - {{ utils.display_webmention_reply(replies_tree_node.wm_reply) }} - {% else %} -
- {{ utils.display_object(replies_tree_node.ap_object, is_h_entry=False) }} -
+ {% if outbox_object %} + {% include "header.html" %} {% endif %} -{% endif %} -{% for child in replies_tree_node.children %} - {{ display_replies_tree(child) }} -{% endfor %} +
+
+ {% macro display_replies_tree(replies_tree_node) %} -{% endmacro %} + {% if replies_tree_node.is_requested %} + {{ utils.display_object(replies_tree_node.ap_object, likes=likes, shares=shares, webmentions=webmentions, expanded=not replies_tree_node.is_root, is_object_page=True, is_h_entry=False) }} + {% else %} + {% if replies_tree_node.wm_reply %} + {# u-comment h-cite is displayed by default for webmention #} + {{ utils.display_webmention_reply(replies_tree_node.wm_reply) }} + {% else %} +
+ {{ utils.display_object(replies_tree_node.ap_object, is_h_entry=False) }} +
+ {% endif %} + {% endif %} -
-{{ display_replies_tree(replies_tree) }} -
+ {% for child in replies_tree_node.children %} + {{ display_replies_tree(child) }} + {% endfor %} + {% endmacro %} + +
+ {{ display_replies_tree(replies_tree) }} +
+
+ +
{% endblock %}