diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2020-06-08 15:37:18 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2020-06-08 15:37:18 +0200 |
commit | b0fbe59a4a788995537f9a0fe4db6f4cf6ba1857 (patch) | |
tree | 0a4f91b2224b082ef5c874c53146bec5fe814626 /templates/translation-links.html | |
parent | 6d9f247612cea42e727b9e5cbba75c6147afcbdc (diff) | |
download | rabalderz-b0fbe59a4a788995537f9a0fe4db6f4cf6ba1857.tar.gz rabalderz-b0fbe59a4a788995537f9a0fe4db6f4cf6ba1857.tar.bz2 rabalderz-b0fbe59a4a788995537f9a0fe4db6f4cf6ba1857.zip |
Display translation link only if one exists.
Diffstat (limited to 'templates/translation-links.html')
-rw-r--r-- | templates/translation-links.html | 3 |
1 files changed, 3 insertions, 0 deletions
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 %} <span class="translations"> {% for l in translations %} {% if l.lang != lang %} @@ -6,3 +8,4 @@ {% endif %} {% endfor %} </span> +{% endif %} |