theme/templates/translations.html

Sat, 19 Mar 2016 00:50:44 +0100

author
David Douard <david.douard@logilab.fr>
date
Sat, 19 Mar 2016 00:50:44 +0100
changeset 42
3c30fc0f8ce0
parent 36
9507107a1133
permissions
-rw-r--r--

[theme] add '(last updated on xxx)' in article timestamps when available

{% macro translations_for(article) %}
{% if article.translations %}
Translations: 
{% for translation in article.translations %}
<a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a>
{% endfor %}
{% endif %}
{% endmacro %}

mercurial