{% load i18n %}
{% load translations %}

<tr>
<td>
  {% if item.allow_merge %}
  <input type="radio" name="merge" required="required" id="merge_{{ item.pk }}" value="{{ item.pk }}">
  {% endif %}
</td>
<td class="vertical-badge">
  {% if item.pk == unit.pk %}
    <span class="badge pull-right flip">{% trans "This translation" %}</span>
  {% endif %}
  {% if item.is_propagated %}
    <span class="badge pull-right flip">{% trans "Propagated" %}</span>
  {% endif %}
  {% if item.translation.component.locked %}
    <span class="badge pull-right flip">{% trans "Locked" %}</span>
  {% endif %}
  {% needs_agreement item.translation.component as needs_agreement %}
  {% if needs_agreement %}
    <span class="badge pull-right flip" title="{% trans "Contribution to this translation requires you to agree with a contributor agreement." %}" >{% trans "Contributor agreement" %}</span>
  {% endif %}
  <span class="badge pull-right flip">{{ item.get_state_display }}</span>
  <a href="{{ item.get_absolute_url }}">{{ item.translation.component }}</a>
</td>
<td>
  {% format_translation item.context item.translation.component.source_language wrap=True simple=True %}
</td>
<td>
  <label for="merge_{{ item.pk }}">
    {% format_translation item.target item.translation.language item.translation.plural simple=True %}
  </label>
</td>
<td>
  {% if item.differently_translated %}
    {% format_translation item.target item.translation.language item.translation.plural unit.target simple=True %}
  {% endif %}
</td>
</tr>
