From 982b7ad783f0135af08700465f0ded1a4371000f Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sun, 7 Jun 2020 15:03:23 +0200 Subject: More i18n stuff, add links languages for index. --- templates/header.html | 2 +- templates/index.html | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/header.html b/templates/header.html index 80e6eb5..ad0951f 100644 --- a/templates/header.html +++ b/templates/header.html @@ -1,4 +1,4 @@ diff --git a/templates/index.html b/templates/index.html index c932b7c..48857c4 100644 --- a/templates/index.html +++ b/templates/index.html @@ -4,6 +4,14 @@
{{ section.content | safe }}
+
+ This page is also available in: + {% for l in section.translations %} + {% if l.lang != lang %} + {{ trans(key=l.lang) }} + {% endif %} + {% endfor %} +
{% for sub in section.subsections %} -- cgit v1.2.3