added translation list in article template

main
Pierre-Antoine Champin 2019-04-27 21:50:46 +02:00 committed by Vitaly Potyarkin
parent 8ad0dd7449
commit 77b73d0ab2
1 changed files with 8 additions and 0 deletions

View File

@ -41,6 +41,14 @@
{% endfor %}
</li>
{% endif %}
{% if article.translations %}
<li class="list-inline-item">
<i class="fas fa-globe"></i>
{% for translation in article.translations %}
<a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a>
{% endfor %}
</li>
{% endif %}
</ul>
</header>
<div class="content">