<tr> <th>{% if option.is_rollback %}Rollback: {% endif %}{{ option.name|title }}</th> <th>Last Success</th> <th>Last Failure</th> </tr> {% for item in option.values %} <tr> <td> <a href="{% url 'releng-results-for' option.field_name item.value.pk %}"> {{ item.value.name|lower }} </a> </td> <td> {% if item.success %} <a href="{% url 'releng-results-iso' item.success.pk %}"> {{ item.success.name }} </a> {% else %}Never succeeded{% endif %} </td> <td> {% if item.failure %} <a href="{% url 'releng-results-iso' item.failure.pk %}"> {{ item.failure.name }} </a> {% else %}Never failed{% endif %} </td> </tr> {% endfor %}