[Components][Posting] Posting section title set accordingly if in 'reply_add' route

This commit is contained in:
Eliseu Amaro 2021-12-29 21:20:02 +00:00
parent 2c31f2e440
commit f16df759a9
Signed by: eliseuamaro
GPG Key ID: 96DA09D4B97BC2D5
1 changed files with 6 additions and 1 deletions

View File

@ -14,7 +14,12 @@
title="{{ 'Expand if you want to access more options.' | trans }}">
<summary class="section-title-summary">
<h2>
{{ "Create a note" | trans }}
{% set current_path = app.request.get('_route') %}
{% if current_path == 'reply_add' %}
{{ "Reply to note" | trans }}
{% else %}
{{ "Create a note" | trans }}
{% endif %}
</h2>
{{ icon('arrow-down', 'icon icon-details-open') | raw }}
</summary>