From 349c46c6dbb8937abbbe2d9cec5afaf29a888ab1 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 17 Nov 2025 12:14:05 +0000 Subject: [PATCH] Refactor viewing case template: adjust HTML structure for improved readability and maintainability --- .../anatomy/question_link_header.html | 77 +++++++++++++------ .../_viewing_case_as_part_of_collection.html | 40 +++++----- 2 files changed, 72 insertions(+), 45 deletions(-) diff --git a/anatomy/templates/anatomy/question_link_header.html b/anatomy/templates/anatomy/question_link_header.html index aeb03c6e..4a66ef1e 100644 --- a/anatomy/templates/anatomy/question_link_header.html +++ b/anatomy/templates/anatomy/question_link_header.html @@ -1,28 +1,55 @@ + \ No newline at end of file diff --git a/atlas/templates/atlas/partials/_viewing_case_as_part_of_collection.html b/atlas/templates/atlas/partials/_viewing_case_as_part_of_collection.html index 12c4d64e..e2c18e10 100644 --- a/atlas/templates/atlas/partials/_viewing_case_as_part_of_collection.html +++ b/atlas/templates/atlas/partials/_viewing_case_as_part_of_collection.html @@ -1,24 +1,24 @@ -
+
+
+ {% if previous %} + ← Previous + {% endif %} +
+
+
Viewing as part of a collection
- {% if previous %} - ← Previous - {% endif %} -
-
-
Viewing as part of a collection
-
- {{collection.name}} - [{{case_number|add:1}}/{{collection_length}}] -
-
-
- {% if next %} - Next → - {% endif %} + {{collection.name}} + [{{case_number|add:1}}/{{collection_length}}]
+
+
+ {% if next %} + Next → + {% endif %} +
-
- {% include "atlas/collection_detail.html#casedetails-management-links" %} -
-
\ No newline at end of file +
+ {% include "atlas/collection_detail.html#casedetails-management-links" %} +
+
\ No newline at end of file