11 lines
375 B
HTML
11 lines
375 B
HTML
|
{% macro translations_for(article) %}
|
||
|
{% 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 %}
|
||
|
{% endmacro %}
|