{% load i18n locale staticpages %}
{% if unit.get_qualitychecks.count %}
<span class="sidetitle" lang="{{ LANGUAGE_CODE }}" title="{% trans 'Possible issues with the translation' %}">{% trans "Failing checks:" %}</span>
<ul class="checks">
  {% for check in unit.get_qualitychecks.iterator %}
  <li class="check{% if check.false_positive %} false-positive{% endif %}">
    <a href="{% url 'pootle-checks-descriptions' %}#{{ check.name }}" target="_blank">{{ check.display_name }}</a>
    {% if canreview %}
    <a class="js-toggle-check toggle-check" data-check-id="{{ check.id }}">
      <i title="{% trans 'Mute quality check' %}" class="mute-check icon-block"></i>
      <i title="{% trans 'Unmute quality check' %}" class="unmute-check icon-block-muted"></i>
    </a>
    {% endif %}
  </li>
  {% endfor %}
</ul>
{% endif %}
