{% 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 termtype, terms in linked_terms.items %}
            {% for term in terms %}
            <li class="notice-term term-{{termtype}}">
                <a href="{% url 'front_search' %}?q={{term.label|urlencode}}" data-dbpedia-uri="{{term.dbpedia_uri}}">{{term.label}}</a>
            </li>
            {% endfor %}
        {% endfor %}
        </ul>
    </td>
</tr>
{% elif base_field %}
<tr{% if row_class %} class="{{row_class}}"{% endif %}>
    <th>{% trans fieldname context 'Thesaurus label' %}{% trans ':' %}</th>
    <td>{{base_field}}</td>
</tr>
{% endif %}

