From 9ce875d5dcd102cac1a1ed11bfce637360d37131 Mon Sep 17 00:00:00 2001 From: Jonathan Foucher <jfoucher@gmail.com> Date: Tue, 2 May 2023 10:23:22 +0200 Subject: [PATCH] Do not show notifications form on user profile. Fixes https://gitlab.adullact.net/soluris/madis/-/issues/670 --- templates/User/Profile/user_edit.html.twig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/User/Profile/user_edit.html.twig b/templates/User/Profile/user_edit.html.twig index 0d016352a..329a2688e 100644 --- a/templates/User/Profile/user_edit.html.twig +++ b/templates/User/Profile/user_edit.html.twig @@ -128,8 +128,9 @@ </div> {% endif %} {% endfor %} - + {% if app_activate_notifications == 'true' %} {% include('@templates_path/User/Profile/notifications.html.twig') %} + {% endif %} </div> </div> {{ form_row(form._token) }} @@ -139,5 +140,5 @@ <input type="submit" class="btn btn-primary" value="{{ submitValue }}"> </div> </div> - + {% endblock %} -- GitLab