Add performance warning for large collections in collection_detail template

This commit is contained in:
Ross
2026-02-09 12:42:03 +00:00
parent 3c8238d737
commit 65f08cce6c
2 changed files with 7 additions and 0 deletions
@@ -19,6 +19,11 @@
<h2 class="card-title mb-2">{{ collection.name }}</h2>
{% include 'exam_notes.html' %}
{% if casesdetails|length > 20 %}
<div class="alert alert-warning" role="alert">
<strong>Performance warning:</strong> This collection contains {{ casesdetails|length }} cases — in some situations this may adversely affect performance, all features will still work but page loading may be slower. Consider splitting into smaller collections if performance is an issue.
</div>
{% endif %}
<p class="mb-1">
</p>
+2
View File
@@ -3,6 +3,7 @@
{% block content %}
<div class="">
<h2>404 error</h2>
{% if request.user.is_staff%}
{% if reason %}
{{ reason }}
{% endif %}
@@ -10,5 +11,6 @@
{% if resolved %}
<h3>{{ resolved }}</h3>
{% endif %}
{% endif %}
</div>
{% endblock %}