gnu-social/templates/sidepanel/right/right.html.twig

53 lines
1.9 KiB
Twig
Raw Normal View History

<aside id='right-panel' tabindex="-1">
{% if post_form is defined %}
<section class="section-widget">
<details class="section-title">
<summary class="section-title-menu">
{{ "Create a note" | trans }}
{{ icon('plus-circle', 'icon icon-plus') | raw }}
</summary>
{% for tab in tabs %}
<a class="section-title-menu-element" href={{ path(tab['href']) }}>{{ tab['title'] }}</a>
{% endfor %}
</details>
<div class="section-form">
{{ form_start(post_form) }}
<span class="section-form-target">
{{ form_label(post_form.to) }}
{{ form_widget(post_form.to) }}
</span>
{{ form_row(post_form.visibility, {'attr': {'class': 'section-form-scope'}}) }}
{{ form_row(post_form.content, {'attr': {'class': 'section-form-textarea'}}) }}
<label for="{{ post_form.attachments.vars.id }}" class="section-form-options">
{{ form_widget(post_form.attachments) }}
</label>
{{ form_row(post_form.post, {'attr': {'class': 'section-form-send'}}) }}
{{ form_end(post_form) }}
</div>
</section>
{% endif %}
{% set current_path = app.request.get('_route') %}
{% if right_panel_vars is defined %}
{% for block in handle_event('AppendRightPanelBlock', {'path': current_path, 'vars': right_panel_vars}) %}
<section class="section-widget">
{{ block | raw }}
</section>
{% endfor %}
{% else %}
{% for block in handle_event('AppendRightPanelBlock', {'path': current_path}) %}
<section class="section-widget">
{{ block | raw }}
</section>
{% endfor %}
{% endif %}
</aside>