17754 fix per-page on version history

This commit is contained in:
Arthur Hanson 2024-10-15 14:07:44 -07:00
parent 55fad2f533
commit 1a0290567a

View File

@ -715,6 +715,12 @@ 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,