From 25e5ef78eddf06e0f99541a7b40bf1b63cf0639a Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 9 Feb 2026 11:24:33 +0000 Subject: [PATCH] Update case series count and management links to use collection.pk for consistency --- atlas/templates/atlas/partials/case_list_item.html | 4 ++-- .../atlas/partials/casedetails_management_links.html | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/atlas/templates/atlas/partials/case_list_item.html b/atlas/templates/atlas/partials/case_list_item.html index f8d1a87b..b56e4b4c 100644 --- a/atlas/templates/atlas/partials/case_list_item.html +++ b/atlas/templates/atlas/partials/case_list_item.html @@ -13,10 +13,10 @@
- {% if casedetail.case.series.count == 0 %} + {% if casedetail.series_count|default:0 == 0 %} This case has no series / stacks attached {% else %} - {{ casedetail.case.series.count }} series + {{ casedetail.series_count }} series {% endif %} {% if casedetail.question_schema %}  • Questions defined diff --git a/atlas/templates/atlas/partials/casedetails_management_links.html b/atlas/templates/atlas/partials/casedetails_management_links.html index 013b1634..999974ba 100644 --- a/atlas/templates/atlas/partials/casedetails_management_links.html +++ b/atlas/templates/atlas/partials/casedetails_management_links.html @@ -1,14 +1,14 @@
- + - + {% if collection.collection_type == "QUE" %} - + {% if casedetail.question_schema %} {% else %} @@ -18,7 +18,7 @@ {% endif %} {% if casedetail.case.previous_case %} - + {% endif %} @@ -36,7 +36,7 @@ {# Remove button (HTMX) - only shown when the surrounding template has `can_edit` true #} {% if can_edit %} -
+