From 2fa9de5cf7db5ef5c1342ee46aa3c571ebb4a1da Mon Sep 17 00:00:00 2001 From: Slatian Date: Sun, 6 Aug 2023 04:31:39 +0200 Subject: [PATCH] Template fix for ip display helper --- templates/helpers.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/helpers.html b/templates/helpers.html index 44d2dce..a9fe2af 100644 --- a/templates/helpers.html +++ b/templates/helpers.html @@ -17,8 +17,8 @@ {% if prefix %}{{ prefix }} {% endif %}{% if fqdn or name=="." %}{{ name }}{% else %}{{ name | trim_end_matches(pat=".") }}{% endif %} {% endmacro dig %} -{% macro ip(extra, ip, text="") %} -{{ text | default(value=ip) }} +{% macro ip(extra, ip, text=false) %} +{% if text %}{{ text }}{% else %}{{ ip }}{% endif %} {% endmacro dig %} {% macro breadcrumb_domain(extra, name) %}