[CARDS][Note] Fix note replies from calling note macro as if it was still part of the same template
This commit is contained in:
parent
99593a19ef
commit
cb393ca554
|
@ -24,12 +24,14 @@
|
||||||
{% endblock note_actions %}
|
{% endblock note_actions %}
|
||||||
|
|
||||||
{% block note_replies %}
|
{% block note_replies %}
|
||||||
|
{% import '/cards/macros/note.html.twig' as noteView %}
|
||||||
|
|
||||||
{% if replies is defined and replies is not empty %}
|
{% if replies is defined and replies is not empty %}
|
||||||
<div class="u-in-reply-to replies">
|
<div class="u-in-reply-to replies">
|
||||||
<span class="note-replies-start"
|
<span class="note-replies-start"
|
||||||
tabindex="0">{{ 'Replies to ' | trans }}{{ nickname }}{{ '\'s note' | trans }}</span>
|
tabindex="0">{{ 'Replies to ' | trans }}{{ nickname }}{{ '\'s note' | trans }}</span>
|
||||||
{% for conversation in replies %}
|
{% for conversation in replies %}
|
||||||
{{ _self.note_vanilla(conversation['note'], conversation['replies']) }}
|
{{ noteView.note_vanilla(conversation['note'], conversation['replies']) }}
|
||||||
<hr tabindex="0" title="{{ 'End of reply' | trans }}">
|
<hr tabindex="0" title="{{ 'End of reply' | trans }}">
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user