flex/templates/partial/translations.html

11 lines
375 B
HTML
Raw Permalink Normal View History

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