sito-hackit-18/themes/hackit0x15/templates/includes/translations.html
boyska dc44e9c94d lang sull'header
pero' si vede male
2018-06-04 19:11:32 +02:00

18 lines
569 B
HTML

{% 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 %}