diff --git a/app/urls.py b/app/urls.py index bcfec50..a930b1b 100644 --- a/app/urls.py +++ b/app/urls.py @@ -77,6 +77,7 @@ urlpatterns = [ path("__debug__/", include("debug_toolbar.urls")), path("", DrilldownTableView.as_view(), name="home"), path("search/", DrilldownTableView.as_view(), name="search"), + path("search/partial/", DrilldownTableView.as_view(), name="search_partial"), path("about/", About.as_view(), name="about"), path("callback", Callback.as_view(), name="callback"), path("billing/", Billing.as_view(), name="billing"), diff --git a/core/templates/partials/results_table.html b/core/templates/partials/results_table.html index 46fc355..e81c84d 100644 --- a/core/templates/partials/results_table.html +++ b/core/templates/partials/results_table.html @@ -4,6 +4,7 @@ {% load joinsep %} {% load urlsafe %} {% block table-wrapper %} +
{% block table %}
@@ -80,11 +81,11 @@
{{ column.header }} @@ -421,11 +422,11 @@ diff --git a/core/templates/window-content/results.html b/core/templates/window-content/results.html index f40e59a..b2fad2e 100644 --- a/core/templates/window-content/results.html +++ b/core/templates/window-content/results.html @@ -1,7 +1,6 @@ {% load static %} {% include 'partials/notify.html' %} - {% if cache is not None %} diff --git a/core/views/ui/drilldown.py b/core/views/ui/drilldown.py index fc2ac89..a25cf18 100644 --- a/core/views/ui/drilldown.py +++ b/core/views/ui/drilldown.py @@ -115,6 +115,9 @@ class DrilldownTableView(SingleTableView): self.template_name = "index.html" # GET arguments in URL like ?query=xyz query_params = request.GET.dict() + if request.htmx: + if request.resolver_match.url_name == "search_partial": + self.template_name = "partials/results_table.html" elif request.POST: query_params = request.POST.dict() else: