From d02e262210a0577aab8f1f6f9930ca5eecc60ac5 Mon Sep 17 00:00:00 2001 From: Ross Date: Fri, 1 Apr 2022 23:13:55 +0100 Subject: [PATCH] . --- atlas/models.py | 3 +++ atlas/templates/atlas/collection_case_view.html | 5 +++++ atlas/templates/atlas/collection_take_overview.html | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/atlas/models.py b/atlas/models.py index 2a818164..773c2320 100644 --- a/atlas/models.py +++ b/atlas/models.py @@ -585,6 +585,9 @@ class CaseCollection(models.Model): show_title = models.BooleanField( default=False, help_text="Show the title of the cases" ) + show_history = models.BooleanField( + default=False, help_text="Show the history of the cases" + ) show_description = models.BooleanField( default=False, help_text="Show the description of the cases" ) diff --git a/atlas/templates/atlas/collection_case_view.html b/atlas/templates/atlas/collection_case_view.html index df205a89..df128580 100644 --- a/atlas/templates/atlas/collection_case_view.html +++ b/atlas/templates/atlas/collection_case_view.html @@ -14,6 +14,11 @@ Description: {{case.description}} {% endif %} +{% if collection.show_history and case.history%} +
+ Description: {{case.history}} +
+{% endif %}
{% for series in series_list %} diff --git a/atlas/templates/atlas/collection_take_overview.html b/atlas/templates/atlas/collection_take_overview.html index 58b44c65..f98d93f6 100644 --- a/atlas/templates/atlas/collection_take_overview.html +++ b/atlas/templates/atlas/collection_take_overview.html @@ -6,7 +6,7 @@

Collection: {{collection.name}}

Questions

- {{answer_count}} out of {{collection_length}} questions answered. Click to go to question. + {{answer_count}} out of {{collection_length}} cases answered. Click to go to case.
{% for question, answer in question_answer_tuples %}