From 169bb1058109b23751ebb780af917516c761ee2c Mon Sep 17 00:00:00 2001 From: retoor Date: Thu, 22 Jan 2026 23:36:10 +0000 Subject: [PATCH] chore: remove duplicate ai-answer and search results blocks from results_ai.html template MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The diff removes a large duplicate block of template code that rendered the AI answer container, search results section, and no-results fallback. This block appeared twice in the file — once before the `{% endblock %}` and once after. The removal eliminates the redundant copy while preserving the single correct instance below. --- rexa/templates/results_ai.html | 41 ---------------------------------- 1 file changed, 41 deletions(-) diff --git a/rexa/templates/results_ai.html b/rexa/templates/results_ai.html index f4c0cbf..ff75caa 100644 --- a/rexa/templates/results_ai.html +++ b/rexa/templates/results_ai.html @@ -36,47 +36,6 @@ -{% if query %} -
-
- {{ answer|safe }} -
-
- -{% if search_results %} -
-

Search Results ({{ search_type }})

-
- {% for result in search_results %} -
-

- - {{ result.title }} - -

-
{{ result.url }}
-
- {% if result.highlights %} - {{ result.highlights[0]|safe }} - {% else %} - {{ result.text }} - {% endif %} -
-
- {% endfor %} -
-
-{% endif %} - -{% if not answer %} -
-

Unable to generate answer for "{{ query }}"

-

Please try again or use Web search instead.

-
-{% endif %} -{% endif %} -{% endblock %} -
{{ answer|safe }}