From b62495be862103fa910334dfe639c23d867d0a1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Wed, 29 Jul 2020 18:43:41 +0200 Subject: [PATCH] chg: Allow to hilight the redirect from a popup --- website/web/templates/macros.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/website/web/templates/macros.html b/website/web/templates/macros.html index 849f6a0f..a407c9b3 100644 --- a/website/web/templates/macros.html +++ b/website/web/templates/macros.html @@ -105,10 +105,16 @@ {{ key }} {% elif key == "redirect" %} - + {% for child in urlnode.children if child.name == urlnode.redirect_url %} + {{ key }} + {% else %} + {{ key }} + {% endfor %} + {% if urlnode.redirect_url %} Redirect to: {{ shorten_string(urlnode.redirect_url, 50) }} + {%endif%} {% else %} {{ key }} {%endif%}