diff --git a/atlas/templates/atlas/uploads_hash_search.html b/atlas/templates/atlas/uploads_hash_search.html new file mode 100644 index 00000000..bbdbd0dc --- /dev/null +++ b/atlas/templates/atlas/uploads_hash_search.html @@ -0,0 +1,89 @@ +{% extends 'atlas/base.html' %} + +{% block content %} +

Search uploaded DICOMs by pixel-data hash

+

Admin-only tool for searching uncategorised uploads by image_blake3_hash.

+ +
+
+ + +
+ Search is case-insensitive and supports partial matches. +
+ + {% if hash_query %} +

Found {{ result_count }} upload{{ result_count|pluralize }} for {{ hash_query }}.

+ + {% if page_obj.object_list %} +
+ + + + + + + + + + + + {% for dicom in page_obj.object_list %} + + + + + + + + {% endfor %} + +
HashUploadedUserSeries UIDLinks
{{ dicom.image_blake3_hash }}{{ dicom.created_date }}{{ dicom.user }}{{ dicom.series_instance_uid|default:"-" }} + {% if dicom.series_instance_uid %} + View series uploads + {% else %} + - + {% endif %} +
+
+ + {% if page_obj.paginator.num_pages > 1 %} + + {% endif %} + {% else %} +
No uploads matched that hash.
+ {% endif %} + {% else %} +
Enter a hash value to search uploads.
+ {% endif %} +{% endblock %} diff --git a/atlas/templates/atlas/user_uploads.html b/atlas/templates/atlas/user_uploads.html index bdabe51c..73d7470f 100644 --- a/atlas/templates/atlas/user_uploads.html +++ b/atlas/templates/atlas/user_uploads.html @@ -5,6 +5,9 @@

Uploaded dicoms

User: {{user}}
Upload more dicoms
+ {% if request.user.is_staff %} + Admin: search uploads by pixel hash
+ {% endif %} {% if not case %}