From 5d37cad48d6618387883c8c4126707a7a5486903 Mon Sep 17 00:00:00 2001 From: Ross Date: Thu, 30 Apr 2026 20:32:14 +0100 Subject: [PATCH] feat: Refactor resource, description, history, and viewer sections for improved readability --- .../atlas/collection_case_view_take.html | 158 +++++++++--------- 1 file changed, 79 insertions(+), 79 deletions(-) diff --git a/atlas/templates/atlas/collection_case_view_take.html b/atlas/templates/atlas/collection_case_view_take.html index ba21fa45..0628855a 100644 --- a/atlas/templates/atlas/collection_case_view_take.html +++ b/atlas/templates/atlas/collection_case_view_take.html @@ -70,70 +70,70 @@
- {% if not question_completed %} - {% if resources %} -
Resources
- + {% if not question_completed %} + {% if resources %} +
Resources
+ + {% endif %} {% endif %} - {% endif %} - {% if show_description and case.description %} -
-
Description
-

{{case.description}}

-
- {% endif %} - {% if show_history %} -
-
-
History: {{casedetail.get_history_pre|linebreaks}}
- {% if has_priors %} -
- Priors{% if prior_count %} ({{ prior_count }}){% endif %} -
+ {% if show_description and case.description %} +
+
Description
+

{{case.description}}

+
+ {% endif %} + {% if show_history %} +
+
+
History: {{casedetail.get_history_pre|linebreaks}}
+ {% if has_priors %} +
+ Priors{% if prior_count %} ({{ prior_count }}){% endif %} +
+ {% endif %} +
+
+ {% endif %} + + {% if collection.show_ohif_viewer %} +
+ + {% if question_completed %} + + {% else %} + + {% endif %} + +
+ {% endif %} + + + {% if collection.show_ohif_viewer_link %} +
+ {% if question_completed %} + + {% else %} + {% endif %}
-
- {% endif %} + {% endif %} - {% if collection.show_ohif_viewer %} -
+ {% if collection.show_built_in_viewer %} - {% if question_completed %} - - {% else %} - - {% endif %} - -
- {% endif %} - - - {% if collection.show_ohif_viewer_link %} -
- {% if question_completed %} - - {% else %} - - {% endif %} -
- {% endif %} - - {% if collection.show_built_in_viewer %} - -
- Viewer -
-
+
+ Viewer +
+
{% comment %}
@@ -166,29 +166,29 @@
{% endcomment %} - {% else %} - {% endif %} + {% else %} + {% endif %} - {% if show_discussion and case.discussion %} -
- - Discussion - -
- {{case.discussion|linebreaks}} -
-
- {% endif %} - {% if show_report and case.report %} -
- - Report - -
- {{case.report|linebreaks}} -
-
- {% endif %} + {% if show_discussion and case.discussion %} +
+ + Discussion + +
+ {{case.discussion|linebreaks}} +
+
+ {% endif %} + {% if show_report and case.report %} +
+ + Report + +
+ {{case.report|linebreaks}} +
+
+ {% endif %}
{% if question_completed %}