translations button more verbose

This commit is contained in:
rra 2018-03-06 15:53:40 +01:00
parent 43b14c3a32
commit 85b8e8c14e

View File

@ -50,7 +50,13 @@
{% if article.translations %}
<div class="article-translation">
{% for translation in article.translations %}
<a href="{{ translation.url }}">{{ translation.lang }}</a>
{% if translation.lang == 'nl' %}
<a href="{{ translation.url }}">Lees dit artikel in het Nederlands</a>
{% endif%}
{% if translation.lang == 'en' %}
<a href="{{ translation.url }}">Read this article in English</a>
{% endif%}
{% endfor %}
</div>
{% endif %}