aboutsummaryrefslogtreecommitdiffstats
path: root/tuxlite_tbs/templates/metadata.html
diff options
context:
space:
mode:
authorSylvain GARANCHER <sylvain.garancher@syleam.fr>2013-08-28 04:07:40 +0200
committerSylvain GARANCHER <sylvain.garancher@syleam.fr>2013-08-28 04:07:40 +0200
commit21588b23faa7981136e01ec80b280dc2223f71e8 (patch)
tree3e123a7848f6092082ae3dd5045ec89e9da33698 /tuxlite_tbs/templates/metadata.html
parent0efd36473c6558dc398601f8d4820d47fad33a92 (diff)
downloadpelican-themes-21588b23faa7981136e01ec80b280dc2223f71e8.tar.gz
[IMP] Add language management for theme tuxlite_tbs
Diffstat (limited to 'tuxlite_tbs/templates/metadata.html')
-rw-r--r--tuxlite_tbs/templates/metadata.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/tuxlite_tbs/templates/metadata.html b/tuxlite_tbs/templates/metadata.html
index 3f7e987..1ee8b86 100644
--- a/tuxlite_tbs/templates/metadata.html
+++ b/tuxlite_tbs/templates/metadata.html
@@ -2,6 +2,12 @@
{% if article.author %}
by <a class="url fn" href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a>
+ {% if article.translations %}
+ <a href="{{ SITEURL }}/{{ article.url }}" class="btn btn-info xsmall">{{ article.lang or DEFAULT_LANG }}</a>
+ {% for translation in article.translations %}
+ <a href="{{ SITEURL }}/{{ translation.url }}" class="btn btn-info xsmall">{{ translation.lang }}</a>&nbsp;
+ {% endfor %}
+ {% endif %}
{% endif %}
{# Filed under <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a> #}