From e98fa204c016c01e5db9fdbe4687b22831e80a41 Mon Sep 17 00:00:00 2001 From: Ross Date: Fri, 8 Apr 2022 23:18:28 +0100 Subject: [PATCH] . --- atlas/templates/atlas/case_detail.html | 14 ++++++++++++++ atlas/views.py | 1 + 2 files changed, 15 insertions(+) diff --git a/atlas/templates/atlas/case_detail.html b/atlas/templates/atlas/case_detail.html index 1c170a17..da2a854f 100755 --- a/atlas/templates/atlas/case_detail.html +++ b/atlas/templates/atlas/case_detail.html @@ -16,6 +16,20 @@ Admin Edit {% endif %} + + {% if collection %} +
+ + {% if previous %} + Previous question + {% endif %} + Viewing question as part of collection: {{collection.name}} [{{pos}}/{{collection_length}}] + {% if next %} + Next question + {% endif %} +
+ {% endif %} + {% include 'atlas/case_display_block.html' %} {% endblock %} diff --git a/atlas/views.py b/atlas/views.py index 2b671085..d673aa1c 100755 --- a/atlas/views.py +++ b/atlas/views.py @@ -1384,6 +1384,7 @@ def collection_case_view(request, pk, case_number): { "form": form, "collection": collection, + "collection_length": len(collection), "case": case, "series_list": series_list, "case_number": case_number,