From 9046c24c4f99ec1b23f717f81ab0f42650289446 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Sun, 15 Jul 2018 03:17:54 +0300 Subject: Language selector function --- weblog/templates/weblog/post.html | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'weblog/templates') diff --git a/weblog/templates/weblog/post.html b/weblog/templates/weblog/post.html index 5a389f8..0459744 100755 --- a/weblog/templates/weblog/post.html +++ b/weblog/templates/weblog/post.html @@ -5,13 +5,13 @@

{% if post_translation %}{{ post_translation.title }}{% else %}{{ post.title }}{% endif %}

{% blocktrans with publish_date=post.publish_date %}Published on {{ publish_date }}{% endblocktrans %}{% if post_author %}{% blocktrans with author=post_author context 'Written by (Author)' %}, by {{ author }}{% endblocktrans %}{% endif %}

- {% if languages %} + {% if post_languages %}
- - + {% for lang in post_languages %} - + {% endfor %}
@@ -76,5 +76,10 @@ {% endif %} {% endif %}
+ {% endblock %} -- cgit v1.2.3