From 45e01a78c1929ceb7ea6f7a9c78b978707613444 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 9 Feb 2026 11:24:43 +0000 Subject: [PATCH] Refactor case management links and button structure for improved readability and consistency --- .../atlas/partials/case_list_item.html | 70 +++++++++--------- .../casedetails_management_links.html | 72 +++++++++---------- 2 files changed, 71 insertions(+), 71 deletions(-) diff --git a/atlas/templates/atlas/partials/case_list_item.html b/atlas/templates/atlas/partials/case_list_item.html index b56e4b4c..01313e46 100644 --- a/atlas/templates/atlas/partials/case_list_item.html +++ b/atlas/templates/atlas/partials/case_list_item.html @@ -24,46 +24,46 @@ -
+
- {% if casedetail.case.history %} - - - - {% else %} - - - - {% endif %} + {% if casedetail.case.history %} + + + + {% else %} + + + + {% endif %} - {% if casedetail.case.discussion %} - - - - {% else %} - - - - {% endif %} + {% if casedetail.case.discussion %} + + + + {% else %} + + + + {% endif %} - {% if casedetail.case.report %} - - - - {% else %} - - - - {% endif %} -
+ {% if casedetail.case.report %} + + + + {% else %} + + + + {% endif %} +
diff --git a/atlas/templates/atlas/partials/casedetails_management_links.html b/atlas/templates/atlas/partials/casedetails_management_links.html index 999974ba..0a430524 100644 --- a/atlas/templates/atlas/partials/casedetails_management_links.html +++ b/atlas/templates/atlas/partials/casedetails_management_links.html @@ -1,44 +1,44 @@ -
- - + - {% if collection.collection_type == "QUE" %} - - {% if casedetail.question_schema %} - - {% else %} - - {% endif %} - - {% endif %} - {% if casedetail.case.previous_case %} - - - - {% endif %} -
- - -
- {% if casedetail.default_viewerstate %} - - {% endif %} -
+
+ {% if casedetail.default_viewerstate %} + + {% endif %} +
{# Remove button (HTMX) - only shown when the surrounding template has `can_edit` true #} - {% if can_edit %} -
- -
- {% endif %} \ No newline at end of file +{% if can_edit %} +
+ +
+{% endif %} \ No newline at end of file