|
@@ -1,8 +1,18 @@
|
|
|
-{% macro translations_for(article) %}
|
|
|
+{% macro translations_for(article, label=True) %}
|
|
|
{% if article.translations %}
|
|
|
-<span class="label label-default">Lang</span>
|
|
|
+ {% 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 %}
|
|
|
+{% 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 %}
|