e7940a21ee
replies, conversation shows whole tree [COMPONENTS][Feed] Added request to FormatNoteList event Every single Note that was provided to FeedController::postProcess is shown. This means, that even though the Feed is formatted to show only a Note and its respective direct replies, those same replies are shown individually again (and they get the chance to show their own direct replies). The Note list provided to FormatNoteList is reversed, and for every index, the respective Note replies are filtered out of the original list. The replies are then added as leafs of the current Note and added to the tree.
63 lines
3.4 KiB
Twig
63 lines
3.4 KiB
Twig
{% block rightpanel %}
|
|
<label class="panel-right-icon" for="panel-right-toggle" aria-hidden="true"
|
|
tabindex="-1">{{ icon('chevron-left', 'icon icon-right') | raw }}</label>
|
|
<input type="checkbox" id="panel-right-toggle" aria-hidden="true" tabindex="-1">
|
|
|
|
<div class="header-panel section-panel-right">
|
|
<a id="anchor-right-panel" class="anchor-hidden" title="{{ 'Press tab to access selected region!' | trans }}"></a>
|
|
<aside class="panel-content accessibility-target">
|
|
|
|
{% set blocks = handle_event('AppendRightPostingBlock', request) %}
|
|
{% if blocks['post_form'] is defined %}
|
|
<section class="section-widget" title="{{ 'Create a new note.' | trans }}">
|
|
<details class="section-widget-title-details" open="open"
|
|
title="{{ 'Expand if you want to access more options.' | trans }}">
|
|
<summary class="section-title-summary">
|
|
<h2>
|
|
{% set current_path = app.request.get('_route') %}
|
|
{% if current_path == 'conversation_reply_to' %}
|
|
{{ "Reply to note" | trans }}
|
|
{% else %}
|
|
{{ "Create a note" | trans }}
|
|
{% endif %}
|
|
</h2>
|
|
{{ icon('arrow-down', 'icon icon-details-open') | raw }}
|
|
</summary>
|
|
|
|
<div class="section-form">
|
|
<fieldset>
|
|
{{ form_start(blocks['post_form']) }}
|
|
{% if blocks['post_form'].in is defined %}
|
|
{{ form_row(blocks['post_form'].in) }}
|
|
{% endif %}
|
|
{{ form_row(blocks['post_form'].visibility) }}
|
|
{{ form_row(blocks['post_form'].content) }}
|
|
{{ form_row(blocks['post_form'].attachments) }}
|
|
|
|
<details class="section-widget-subtitle-details">
|
|
<summary class="section-subtitle-summary">
|
|
<strong>
|
|
{{ "Additional options" | trans }}
|
|
</strong>
|
|
{{ icon('arrow-down', 'icon icon-details-close') | raw }}
|
|
</summary>
|
|
{{ form_row(blocks['post_form'].language) }}
|
|
{{ form_row(blocks['post_form'].tag_use_canonical) }}
|
|
</details>
|
|
{{ form_rest(blocks['post_form']) }}
|
|
{{ form_end(blocks['post_form']) }}
|
|
</fieldset>
|
|
</div>
|
|
</details>
|
|
</section>
|
|
{% endif %}
|
|
|
|
{% set current_path = app.request.get('_route') %}
|
|
{% for block in handle_event('AppendRightPanelBlock', {'path': current_path, 'request': request, 'vars': right_panel_vars | default }, request) %}
|
|
{{ block | raw }}
|
|
{% endfor %}
|
|
|
|
</aside>
|
|
</div>
|
|
{% endblock rightpanel %}
|