{% extends "base.html" %}
{% load i18n %}
{% load translations %}
{% load url from future %}

{% block breadcrumbs %}
<li><a href="{% url 'weblate.trans.views.show_checks' %}">{% trans "checks" %}</a></li>
<li><a href="{% url 'weblate.trans.views.show_check' name=check.check_id %}">{{ check.name }}</a></li>
<li><a href="{% url 'weblate.trans.views.show_check_project' name=check.check_id project=project.slug %}">{{ project }}</a></li>
{% endblock %}

{% block content %}

<p>
{{ check.description }}
</p>

<p>
{% blocktrans with check.get_doc_url as link %}More information about this check is available in the <a href="{{ link }}">documentation</a>.{% endblocktrans %}
</p>

{% if checks %}
<table class="sort simple">
<thead>
<tr>
<th>{% trans "Project" %}</th>
<th>{% trans "Failures" %}</th>
</tr>
<tbody>
{% for obj in checks %}
<tr>
<th><a href="{% url 'weblate.trans.views.show_subproject' project=obj.translation__subproject__project__slug subproject=obj.translation__subproject__slug %}">{% subproject_name obj.translation__subproject__project__slug obj.translation__subproject__slug %}</a></th>
<td><a href="{% url 'weblate.trans.views.show_check_subproject' name=check.check_id project=obj.translation__subproject__project__slug subproject=obj.translation__subproject__slug %}">{{ obj.count }}</a></td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p>
{% trans "There are no matching failed checks!" %}
</p>
{% endif %}

{% endblock %}


