diff --git a/rad/views.py b/rad/views.py index 5f23e593..bfc169f1 100644 --- a/rad/views.py +++ b/rad/views.py @@ -136,8 +136,6 @@ def cid_scores(request, pk, passcode): case_collections = cid_user.casecollection_exams.all() - exams.append(("Case Collection", case_collections)) - available_exams = cid_user.get_cid_exams() return render( @@ -154,6 +152,7 @@ def cid_scores(request, pk, passcode): "passcode": passcode, "cid_user": cid_user, "available_exams": available_exams, + "case_collections": case_collections, }, ) diff --git a/templates/cid_scores.html b/templates/cid_scores.html index e091716d..09154002 100644 --- a/templates/cid_scores.html +++ b/templates/cid_scores.html @@ -15,6 +15,7 @@ {% endfor %}

Exam results

+
The following exam results been found. Click to view answers (and scores when the results are published): {% for exam_type, exams in all_exams %} {% if exams %} @@ -26,6 +27,18 @@ {% endif %} {% endfor %} +
+ + {% if case_collections %} +
+ The following Case Collections have been found. +

Case Collection

+ {% for collection in case_collections %} +
  • {{collection.name}} {% if collection.active %}[Active]{% endif %} {% if collection.publish_results %}[Results Published]{% endif %}
  • + + {% endfor %} +
    +{% endif %} {% endblock %}