From 5ffd44466e65c0646243086545c7c66e75af746d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 18 Dec 2022 17:35:29 +0100 Subject: [PATCH] Show private attachment badge above the view link. --- templates/Parts/edit/edit_form_styles.html.twig | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/templates/Parts/edit/edit_form_styles.html.twig b/templates/Parts/edit/edit_form_styles.html.twig index c4ec753e..b31132c6 100644 --- a/templates/Parts/edit/edit_form_styles.html.twig +++ b/templates/Parts/edit/edit_form_styles.html.twig @@ -138,6 +138,13 @@ {% endif %} + {% if attach.secure %} +
+ + {% trans %}attachment.secure{% endtrans %} + +
+ {% if attach.secure and not is_granted('show_private', attach) %} {# Leave blank #} {% elseif attach.picture %} @@ -155,13 +162,6 @@ {% endif %} - - {% if attach.secure %} -
- - {% trans %}attachment.secure{% endtrans %} - -
{% endif %} {% endif %}