17754 remove htmx table

This commit is contained in:
Arthur Hanson 2024-10-16 10:32:24 -07:00
parent 1a0290567a
commit 9e40a46b9e
2 changed files with 3 additions and 8 deletions

View File

@ -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,

View File

@ -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 @@
<div class="col col-6">
<div class="card">
<h2 class="card-header">{% trans "Version History" %}</h2>
<div class="htmx-container table-responsive" id="object_list">
{% include 'htmx/table.html' %}
<div class="table-responsive" id="object_list">
{% render_table table 'inc/table_htmx.html' %}
</div>
</div>
</div>