|
|
@@ -68,10 +68,16 @@
|
|
|
</td>
|
|
|
{% else %}
|
|
|
<td class="text-muted">{% trans "Never" %}</td>
|
|
|
- <td>{{ ''|placeholder }}</td>
|
|
|
+ {% if report.test_methods|length %}
|
|
|
+ <td>{{ ''|placeholder }}</td>
|
|
|
+ {% else %}
|
|
|
+ <td>
|
|
|
+ Invalid (no test methods found)
|
|
|
+ </td>
|
|
|
+ {% endif %}
|
|
|
{% endif %}
|
|
|
<td>
|
|
|
- {% if perms.extras.run_report %}
|
|
|
+ {% if perms.extras.run_report and report.test_methods|length %}
|
|
|
<div class="float-end noprint">
|
|
|
<form action="{% url 'extras:report' module=report.module name=report.class_name %}" method="post">
|
|
|
{% csrf_token %}
|