{% load i18n %}
{% load translations %}
{% if similar %}
<table>
    <thead>
    <tr><th>{% trans "Project" %}</th><th>{% trans "Source" %}</th><th>{% trans "Translation" %}</th><th>{% trans "State" %}</th></tr>
    </thead>
    <tbody>
{% for item in similar %}
    <tr>
    <td>{{ item.translation.subproject }}</td>
    <td class="translatetext"><a href="{{ item.get_absolute_url }}">{{ item.source|fmttranslation }}</a></td>
    <td class="translatetext" {{ item.translation.language.get_html }}><a href="{{ item.get_absolute_url }}">{{ item.target|fmttranslation:item.translation.language }}</a></td>
    <td>{% include "unit-state.html" %}</td>
    </tr>
{% endfor %}
    </tbody>
</table>
{% else %}
<p>{% trans "No similar strings found." %}</p>
{% endif %}
