Add language information to label on item page.

This commit is contained in:
Edward Betts 2019-09-30 10:19:12 +01:00
parent 6eb79ccfd5
commit 514c55cd6e
3 changed files with 62 additions and 3 deletions

View file

@ -13,6 +13,14 @@
<div class="d-flex">
<div class="p-2 flex-fill">
<h1>{{ self.title() }}</h1>
<p>Label from:
{% for lang in label_languages %}
{{ lang.label }} ({{ lang.code }})
{% if show_translation_links %}
<a href="https://translate.google.com/#view=home&op=translate&sl={{lang.code}}&tl=en&text={{label}}" target="translation">[translate]</a>
{% endif %}
{% endfor %}
</p>
<p>
<a href="https://www.wikidata.org/wiki/{{ qid }}">view this painting on Wikidata</a>