flex/templates/partial/translations.html

11 lines
331 B
HTML
Raw Normal View History

2017-04-23 00:34:29 +02:00
{% macro translations_for(article) %}
{% if article.translations %}
<div class="translations">
<span class="lang lang-current">{{article.lang}}</span>
{% for translation in article.translations %}
<a class="lang" href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a>
{% endfor %}
</div>
{% endif %}
{% endmacro %}