sitolost/content/xtemplates/includes/translations.html

9 lines
285 B
HTML
Raw Normal View History

2019-10-23 14:37:16 +02:00
{% 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 %}