From 22e5f9a4960867c6c36803efc7ec80278e03e635 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 2 Feb 2026 10:52:36 +0000 Subject: [PATCH] Enhance case search results display with additional information and tooltips for condition, presentation, and subspecialty --- .../atlas/partials/_case_search_results.html | 8 ++-- .../atlas/partials/case_search_results.html | 43 ++++++++----------- 2 files changed, 23 insertions(+), 28 deletions(-) diff --git a/atlas/templates/atlas/partials/_case_search_results.html b/atlas/templates/atlas/partials/_case_search_results.html index 072e7390..d03f7238 100644 --- a/atlas/templates/atlas/partials/_case_search_results.html +++ b/atlas/templates/atlas/partials/_case_search_results.html @@ -9,15 +9,15 @@
{% if case.author.all %}By {{ case.author.all|join:", " }}{% endif %} - {% if case.condition %}{{ case.condition.name }}{% endif %} - {% if case.presentation %}{{ case.presentation.name }}{% endif %} - {% if case.subspecialty %}{{ case.subspecialty.name }}{% endif %} + {% if case.condition %}{{ case.condition.name }}{% endif %} + {% if case.presentation %}{{ case.presentation.name }}{% endif %} + {% if case.subspecialty %}{{ case.subspecialty.name }}{% endif %}
{# show up to three series modalities/examinations if present #} {% for s in case.series.all|slice:":3" %} - + {% if s.modality %}{{ s.modality.modality }}{% endif %} {% if s.examination %} / {{ s.examination.examination }}{% endif %} diff --git a/atlas/templates/atlas/partials/case_search_results.html b/atlas/templates/atlas/partials/case_search_results.html index cda0cce2..fd0f40bb 100644 --- a/atlas/templates/atlas/partials/case_search_results.html +++ b/atlas/templates/atlas/partials/case_search_results.html @@ -1,29 +1,24 @@ {# Search results #} -{% if q %} - {% if cases and cases.exists %} -
- {% for case in cases %} - +{% else %} +
No cases found.
{% endif %} {# Recent cases quick-add (rendered below search results) #}