10587 pagination

This commit is contained in:
Arthur 2024-03-04 10:26:51 -08:00
parent 7d44da0a2a
commit ab9734a9d8
2 changed files with 3 additions and 0 deletions

View File

@ -1204,6 +1204,7 @@ class ScriptResultView(TableMixin, generic.ObjectView):
if job.completed: if job.completed:
table_logs, table_tests = self.get_table(job, request, bulk_actions=False) table_logs, table_tests = self.get_table(job, request, bulk_actions=False)
breakpoint()
context = { context = {
'script': job.object, 'script': job.object,
'job': job, 'job': job,

View File

@ -19,12 +19,14 @@
</p> </p>
{% if job.completed %} {% if job.completed %}
{% if table.logs and not table_tests %}
<div class="card"> <div class="card">
<div class="table-responsive" id="object_list"> <div class="table-responsive" id="object_list">
<h5 class="card-header">{% trans "Log" %}</h5> <h5 class="card-header">{% trans "Log" %}</h5>
{% include 'htmx/table.html' with table=table_logs %} {% include 'htmx/table.html' with table=table_logs %}
</div> </div>
</div> </div>
{% endif %}
{# Script output. Legacy reports will not have this. #} {# Script output. Legacy reports will not have this. #}
{% if 'output' in job.data %} {% if 'output' in job.data %}