From 65f08cce6c7e2fab8acb1b297b4228a5fd5e1907 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 9 Feb 2026 12:42:03 +0000 Subject: [PATCH] Add performance warning for large collections in collection_detail template --- atlas/templates/atlas/collection_detail.html | 5 +++++ templates/404.html | 2 ++ 2 files changed, 7 insertions(+) diff --git a/atlas/templates/atlas/collection_detail.html b/atlas/templates/atlas/collection_detail.html index 84ff763b..bdef8850 100644 --- a/atlas/templates/atlas/collection_detail.html +++ b/atlas/templates/atlas/collection_detail.html @@ -19,6 +19,11 @@

{{ collection.name }}

{% include 'exam_notes.html' %} + {% if casesdetails|length > 20 %} + + {% endif %}

diff --git a/templates/404.html b/templates/404.html index 7f35606d..ed3aec80 100644 --- a/templates/404.html +++ b/templates/404.html @@ -3,6 +3,7 @@ {% block content %}

404 error

+ {% if request.user.is_staff%} {% if reason %} {{ reason }} {% endif %} @@ -10,5 +11,6 @@ {% if resolved %}

{{ resolved }}

{% endif %} + {% endif %}
{% endblock %} \ No newline at end of file