Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion netbox/templates/extras/htmx/script_result.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ <h5 class="card-header">{% trans "Test Summary" %}</h5>
<div class="card">
<div class="table-responsive" id="object_list">
<h5 class="card-header">{% trans "Log" %}</h5>
{% include 'htmx/table.html' %}
{% include 'htmx/table.html' with no_htmx_container=True%}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is a pattern we want to encourage. I'm going to see if I can come up with a cleaner fix for this.

</div>
</div>
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion netbox/templates/htmx/table.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% load helpers %}
{% load render_table from django_tables2 %}

<div class="htmx-container table-responsive">
<div class="{% if not no_htmx_container %}htmx-container{% endif %} table-responsive">
{% with preferences|get_key:"pagination.placement" as paginator_placement %}
{% if paginator_placement == 'top' or paginator_placement == 'both' %}
{% include 'inc/paginator.html' with htmx=True table=table paginator=table.paginator page=table.page placement='top' %}
Expand Down