From f16df759a99bf0edd7a5ef696978e5bdb4d87496 Mon Sep 17 00:00:00 2001 From: Eliseu Amaro Date: Wed, 29 Dec 2021 21:20:02 +0000 Subject: [PATCH] [Components][Posting] Posting section title set accordingly if in 'reply_add' route --- components/RightPanel/templates/right_panel/view.html.twig | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/RightPanel/templates/right_panel/view.html.twig b/components/RightPanel/templates/right_panel/view.html.twig index e8963501f0..f7f9c9c79f 100644 --- a/components/RightPanel/templates/right_panel/view.html.twig +++ b/components/RightPanel/templates/right_panel/view.html.twig @@ -14,7 +14,12 @@ title="{{ 'Expand if you want to access more options.' | trans }}">

- {{ "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 %}

{{ icon('arrow-down', 'icon icon-details-open') | raw }}