Init
This commit is contained in:
8
templates/includes/translations.html
Normal file
8
templates/includes/translations.html
Normal file
@ -0,0 +1,8 @@
|
||||
{% 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 %}
|
Reference in New Issue
Block a user