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

{% macro translations_li(article) %}
{% if article.translations %}
{% for translation in article.translations %}
    <li><a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a></li>
{% endfor %}
{% endif %}
{% endmacro %}
