sitolost/content/xtemplates/includes/translations.html
2019-10-23 14:37:16 +02:00

9 lines
285 B
HTML

{% macro translations_for(article) %}
{% if article.translations %}
<span class="label label-default">{{ _('Lang') }}</span>
{% for translation in article.translations %}
<a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a>
{% endfor %}
{% endif %}
{% endmacro %}