diff --git a/netbox/core/views.py b/netbox/core/views.py index 56edb30d6..3c5319626 100644 --- a/netbox/core/views.py +++ b/netbox/core/views.py @@ -715,12 +715,6 @@ class PluginView(BasePluginView): table = PluginVersionTable(plugin.release_recent_history, user=request.user) table.configure(request) - # If this is an HTMX request, return only the rendered table HTML - if htmx_partial(request): - return render(request, 'htmx/table.html', { - 'table': table, - }) - return render(request, 'core/plugin.html', { 'plugin': plugin, 'table': table, diff --git a/netbox/templates/core/plugin.html b/netbox/templates/core/plugin.html index 34eaf81ee..4470ae453 100644 --- a/netbox/templates/core/plugin.html +++ b/netbox/templates/core/plugin.html @@ -2,6 +2,7 @@ {% load helpers %} {% load form_helpers %} {% load i18n %} +{% load render_table from django_tables2 %} {% block title %}{{ plugin.title_long }}{% endblock %} @@ -93,8 +94,8 @@

{% trans "Version History" %}

-
- {% include 'htmx/table.html' %} +
+ {% render_table table 'inc/table_htmx.html' %}