From 230e1f057a7c0e0a6c9abb07ebbbb5152d8404ef Mon Sep 17 00:00:00 2001 From: Robert Goldmann <deadlocker@gmx.de> Date: Sun, 7 Jun 2020 15:24:22 +0200 Subject: [PATCH] #338 - only show name and description in template overview if they are filled --- src/main/resources/templates/templates/templateFunctions.ftl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/templates/templates/templateFunctions.ftl b/src/main/resources/templates/templates/templateFunctions.ftl index ed2d0e839..1bea15876 100644 --- a/src/main/resources/templates/templates/templateFunctions.ftl +++ b/src/main/resources/templates/templates/templateFunctions.ftl @@ -63,7 +63,7 @@ </#macro> <#macro templateName template> - <#if template.getName()??> + <#if template.getName()?has_content> <tr> <td class="template-content-label">${locale.getString("transaction.new.label.name")}</td> <td>${template.getName()}</td> @@ -90,7 +90,7 @@ </#macro> <#macro templateDescription template> - <#if template.getDescription()??> + <#if template.getDescription()?has_content> <tr> <td class="template-content-label">${locale.getString("transaction.new.label.description")}</td> <td>${template.getDescription()}</td> -- GitLab