From 4c63c8802178b524af080ebdfa30681f6a4bb5b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Tue, 24 Mar 2020 17:08:26 +0100 Subject: [PATCH] Hide empty tabs in part info. --- templates/Parts/info/show_part_info.html.twig | 68 +++++++++++-------- 1 file changed, 40 insertions(+), 28 deletions(-) diff --git a/templates/Parts/info/show_part_info.html.twig b/templates/Parts/info/show_part_info.html.twig index 035361ad..c561eaef 100644 --- a/templates/Parts/info/show_part_info.html.twig +++ b/templates/Parts/info/show_part_info.html.twig @@ -57,28 +57,34 @@ {% endif %} - - - + {% if part.parameters is not empty or description_params is not empty or comment_params is not empty %} + + {% endif %} + {% if part.attachments is not empty %} + + {% endif %} + {% if part.orderdetails is not empty %} + + {% endif %}