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

{% block breadcrumbs %}
<li><a href="{% url 'checks' %}">{% trans "checks" %}</a></li>
<li><a href="{% url 'show_check' name=check.check_id %}">{{ check.name }}</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 'project' project=obj.project__slug %}">{% project_name obj.project__slug %}</a></th>
<td><a href="{% url 'show_check_project' name=check.check_id project=obj.project__slug %}{{ ignore_string }}">{{ obj.count }}</a></td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p>
{% trans "There are no matching failed checks!" %}
</p>
{% endif %}

{% endblock %}

