From b0fbe59a4a788995537f9a0fe4db6f4cf6ba1857 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Mon, 8 Jun 2020 15:37:18 +0200 Subject: Display translation link only if one exists. --- templates/translation-links.html | 3 +++ 1 file changed, 3 insertions(+) (limited to 'templates/translation-links.html') diff --git a/templates/translation-links.html b/templates/translation-links.html index c87f01a..6694c96 100644 --- a/templates/translation-links.html +++ b/templates/translation-links.html @@ -1,3 +1,5 @@ +{% set numtrans = translations | length %} +{% if numtrans > 0 %} {% for l in translations %} {% if l.lang != lang %} @@ -6,3 +8,4 @@ {% endif %} {% endfor %} +{% endif %} -- cgit v1.2.3