From 8c1c7b75e74fc92cc04ef61291f3fc942f2b8f3b Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 5 Nov 2025 21:52:53 +0000 Subject: [PATCH] Refactor case search input and results handling for improved functionality and clarity --- atlas/templates/atlas/index.html | 104 +++++++++--------- .../atlas/partials/_case_search_results.html | 2 +- 2 files changed, 53 insertions(+), 53 deletions(-) diff --git a/atlas/templates/atlas/index.html b/atlas/templates/atlas/index.html index 986548f2..d2256463 100644 --- a/atlas/templates/atlas/index.html +++ b/atlas/templates/atlas/index.html @@ -1,64 +1,64 @@ {% extends 'atlas/base.html' %} {% block content %} -
-
-
-

Atlas

+
+
+
+

Atlas

+
+
+ +
+
+
+
+
Search cases
+
+ +
+
+ {% include 'atlas/partials/_case_search_results.html' with cases=None %} +
+
+
+
+
+
Collections
+

Quick access to collections you can view or take.

+ Collections to view / take +
+
+ +
+
+
My cases / collections
+

View my cases.

+

+ + Uploads awaiting import + +

+
-
-
-
-
-
Search cases
-
- -
-
- {% include 'atlas/partials/_case_search_results.html' with cases=None %} -
-
-
-
-
-
Collections
-

Quick access to collections you can view or take.

- Collections to view / take -
-
- -
-
-
My cases / collections
-

View my cases.

-

- - Uploads awaiting import - -

-
-
-
- - {% endblock %} \ No newline at end of file diff --git a/atlas/templates/atlas/partials/_case_search_results.html b/atlas/templates/atlas/partials/_case_search_results.html index 1b7665f9..aae32b16 100644 --- a/atlas/templates/atlas/partials/_case_search_results.html +++ b/atlas/templates/atlas/partials/_case_search_results.html @@ -1,6 +1,6 @@ {# partial: list of cases for HTMX search results #}
-{% if cases and cases.exists %} +{% if cases %} {% for case in cases %}