From e119dceaa111e7496481c76ab8e4d42894b4d358 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 12 May 2025 09:02:19 +0100 Subject: [PATCH] move case block to a partial --- atlas/templates/atlas/case_display_block.html | 70 ++++++++++++++----- .../atlas/linked_cases_overview.html | 16 +++-- atlas/views.py | 2 +- 3 files changed, 64 insertions(+), 24 deletions(-) diff --git a/atlas/templates/atlas/case_display_block.html b/atlas/templates/atlas/case_display_block.html index 5e4dda6c..6ec10389 100755 --- a/atlas/templates/atlas/case_display_block.html +++ b/atlas/templates/atlas/case_display_block.html @@ -1,3 +1,24 @@ +{% load partials %} + +{% partialdef case-series %} + {% for series in case.series.all %} + + + Series {{ forloop.counter }}:
+ + {{series.get_block}} + +
+ + + Popup + +
+
+ {% endfor %} +{% endpartialdef %} +

Case: {{ case.title }}

{% if case.previous_case or case.next_case %} @@ -120,27 +141,12 @@
Series:
- {% for series in case.series.all %} - - - Series {{ forloop.counter }}:
- - {{series.get_block}} - -
- - - Popup - -
-
- {% endfor %} + {% partial case-series %}
Add new series
Import new uploads
-
+
+