From f46b6cd2f6bba5406aa41fdaddfa77e252a69955 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Fri, 26 Aug 2022 07:20:30 +0100 Subject: [PATCH] Fix widget rendering after swap --- core/templates/ui/drilldown/drilldown.html | 67 ++++++------------- .../templates/ui/drilldown/table_results.html | 38 ----------- core/templates/widgets/table_results.html | 43 ++++++------ core/views/ui/drilldown.py | 5 +- 4 files changed, 47 insertions(+), 106 deletions(-) delete mode 100644 core/templates/ui/drilldown/table_results.html diff --git a/core/templates/ui/drilldown/drilldown.html b/core/templates/ui/drilldown/drilldown.html index 552aa49..627e439 100644 --- a/core/templates/ui/drilldown/drilldown.html +++ b/core/templates/ui/drilldown/drilldown.html @@ -69,54 +69,6 @@ -
- {% if table %} -
-
-
-

- - Results -

-
-
- - - - - - {{ table.data|length }} hits in {{ took }}ms - {% if exemption is not None %} - - - - {% else %} - {% if redacted is not None %} - - - - {% endif %} - {% endif %} - {% if delay is not None %} - - - - {% endif %} - {% if randomised is True %} - - - - {% endif %} - - {% include 'ui/drilldown/table_results_partial.html' %} - {% include 'ui/drilldown/sentiment_partial.html' %} -
-
-
-
-
- {% endif %} -
@@ -124,6 +76,11 @@ + + {% if table %} + + {% endif %} {% endblock %} diff --git a/core/templates/ui/drilldown/table_results.html b/core/templates/ui/drilldown/table_results.html deleted file mode 100644 index 9cc73e0..0000000 --- a/core/templates/ui/drilldown/table_results.html +++ /dev/null @@ -1,38 +0,0 @@ -{% load static %} -{% load index %} -{% load joinsep %} -{% include 'partials/notify.html' %} - -{% if table %} - - - - - - {{ table.data|length }} hits in {{ took }}ms - {% if exemption is not None %} - - - - {% else %} - {% if redacted is not None %} - - - - {% endif %} - {% endif %} - {% if delay is not None %} - - - - {% endif %} - {% if randomised is True %} - - - - {% endif %} - - {% include 'ui/drilldown/table_results_partial.html' %} - {% include 'ui/drilldown/sentiment_partial.html' %} - -{% endif %} diff --git a/core/templates/widgets/table_results.html b/core/templates/widgets/table_results.html index 4cd3764..f64f41e 100644 --- a/core/templates/widgets/table_results.html +++ b/core/templates/widgets/table_results.html @@ -1,15 +1,20 @@ {% load static %} -
-
+ +