UI: Don't display result table if there are no results

Change-Id: I6c2172ebfa6f13b4a417ffaf955c12e769539243
This commit is contained in:
David Moreau Simard 2020-09-15 22:39:14 -04:00
parent db0548ad7d
commit 389e7c996f
No known key found for this signature in database
GPG Key ID: 7D4729EC4E64E8B7
1 changed files with 8 additions and 0 deletions

View File

@ -224,6 +224,7 @@
</div>
{% include "partials/pagination.html" with data=results %}
{% endif %}
{% if results.count %}
<table class="pf-c-table pf-m-grid-md pf-m-compact" role="grid" id="result-table">
<thead>
<tr role="row">
@ -264,6 +265,13 @@
{% endfor %}
</tbody>
</table>
{% else %}
{% if request.GET %}
No task results have been found for this query: <a href="{% url 'ui:playbook' playbook.id %}#results">clear filters</a>
{% else %}
No task results have been recorded for this playbook yet. It may be in progress or has been interrupted.
{% endif %}
{% endif %}
</details>
</div>
</div>