{% extends "suites/results/detail.html" %}

{% block head_title %}Tests - {% parent %}{% endblock %}

{% block content %}
<table class="table">
  <thead>
    <tr>
      <th>ID</th>
      <th>Agent</th>
      <th>Pass</th>
      <th>Fail</th>
      <th>Duration</th>
      <th>Time</th>
      <th></th>
    </tr>
  </thead>
  <tbody>
    {% for test_result in test_results %}
    <tr>
      <td><a href="{{ test_result.url }}">{{ test_result.id }}</a></td>
      <td><a href="{{ test_result.agent_url }}">{{ test_result.agent }}</a></td>
      <td><span{% if test_result.ok %} class="label label-success"{% endif %}>{{ test_result.pass }}</span></td>
      <td><span{% if not test_result.ok %} class="label label-important"{% endif %}>{{ test_result.fail }}</span></td>
      <td>{{ test_result.duration }}</td>
      <td>{{ test_result.time|age }}</td>
      <td><a class="btn" href="{{ test_result.assertions_url }}">Assertions</a></td>
    </tr>
    {% endfor %}
  </tbody>
</table>
{% endblock %}

{% extends "suites/results/detail.html" %}

{% block head_title %}Tests - {% parent %}{% endblock %}

{% block content %}
<table class="table">
  <thead>
    <tr>
      <th>Test</th>
      <th>Agent</th>
      <th>Pass</th>
      <th>Fail</th>
      <th>Duration</th>
      <th>Time</th>
      <th></th>
    </tr>
  </thead>
  <tbody>
    {% for test_result in test_results %}
    <tr>
      <td><a href="{{ test_result.url }}">{{ test_result.test }}</a></td>
      <td><a href="{{ test_result.agent_url }}">{{ test_result.agent }}</a></td>
      <td><span{% if test_result.ok %} class="label label-success"{% endif %}>{{ test_result.pass }}</span></td>
      <td><span{% if not test_result.ok %} class="label label-important"{% endif %}>{{ test_result.fail }}</span></td>
      <td>{{ test_result.duration }}</td>
      <td>{{ test_result.time|age }}</td>
      <td><a class="btn" href="{{ test_result.assertions_url }}">Assertions</a></td>
    </tr>
    {% endfor %}
  </tbody>
</table>
{% endblock %}

Use nicer test result name
Use nicer test result name
