kopia lustrzana https://github.com/Aonrud/ila-microblog.pub
feat: Show aside column on object page
rodzic
da10887d5f
commit
d15f848c91
|
@ -23,16 +23,17 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
{% if outbox_object %}
|
||||||
|
{% include "header.html" %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if outbox_object %}
|
<div class="row">
|
||||||
{% include "header.html" %}
|
<main class="col-sm-8">
|
||||||
{% endif %}
|
{% macro display_replies_tree(replies_tree_node) %}
|
||||||
|
|
||||||
{% 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) }}
|
||||||
{% if replies_tree_node.is_requested %}
|
{% else %}
|
||||||
{{ 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 %}
|
{% if replies_tree_node.wm_reply %}
|
||||||
{# u-comment h-cite is displayed by default for webmention #}
|
{# u-comment h-cite is displayed by default for webmention #}
|
||||||
{{ utils.display_webmention_reply(replies_tree_node.wm_reply) }}
|
{{ utils.display_webmention_reply(replies_tree_node.wm_reply) }}
|
||||||
|
@ -41,16 +42,20 @@
|
||||||
{{ utils.display_object(replies_tree_node.ap_object, is_h_entry=False) }}
|
{{ utils.display_object(replies_tree_node.ap_object, is_h_entry=False) }}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% for child in replies_tree_node.children %}
|
{% for child in replies_tree_node.children %}
|
||||||
{{ display_replies_tree(child) }}
|
{{ display_replies_tree(child) }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
<div class="h-entry">
|
|
||||||
{{ display_replies_tree(replies_tree) }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
<div class="h-entry">
|
||||||
|
{{ display_replies_tree(replies_tree) }}
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
<aside class="col-sm-4">
|
||||||
|
{% include "sidebar.html" %}
|
||||||
|
</aside>
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Ładowanie…
Reference in New Issue