{% load i18n %}

{% if linked_terms %}
<tr{% if row_class %} class="{{row_class}}"{% endif %}>
    <th>{% trans fieldname context 'Thesaurus label' %}{% trans ':' %}</th>
    <td>
        <ul class="notice-term-list">
        {% for term in linked_terms.translated %}
            <li class="notice-term term-translated">
                <a href="{% url 'front_search' %}?dbpedia_uri={{term.dbpedia_uri|urlencode}}" data-dbpedia-uri="{{term.dbpedia_uri}}">{{term.label}}</a>
            </li>
        {% endfor %}
        {% for term in linked_terms.untranslated %}
            <li class="notice-term term-untranslated" dir="ltr">{{term.label}}</li>
        {% endfor %}
        </ul>
    </td>
</tr>
{% elif base_field %}
<tr{% if row_class %} class="{{row_class}}"{% endif %}>
    <th>{% trans fieldname context 'Thesaurus label' %}{% trans ':' %}</th>
    <td dir="ltr">{{base_field}}</td>
</tr>
{% endif %}

