From 3851a3ab279d22ded20b61d4149e4d9eeee3d744 Mon Sep 17 00:00:00 2001
From: Ties Dirksen <78494266+T8902@users.noreply.github.com>
Date: Wed, 13 Nov 2024 19:49:10 +0100
Subject: [PATCH] Fix the information bubble above the normal albums (#3833)
* Fix the information bubble above the normal albums
* Remove unnecessary context from view and unnecessary messages
---
website/photos/templates/photos/index.html | 9 ---------
website/photos/views.py | 8 --------
2 files changed, 17 deletions(-)
diff --git a/website/photos/templates/photos/index.html b/website/photos/templates/photos/index.html
index 5a57311f3..33e279391 100644
--- a/website/photos/templates/photos/index.html
+++ b/website/photos/templates/photos/index.html
@@ -26,15 +26,6 @@
Some of your reference faces have been rejected. Please delete them and upload new ones.
- {% elif has_processing_reference_faces %}
-
- {% alert "info" "Some of your reference faces have not been processed yet. Come back later." dismissible=False %}
-
- {% elif has_reference_faces and not has_processing_reference_faces and not photos %}
-
- {% alert "info" "You haven't been recognized on any photos (yet)." dismissible=False %}
-
- {% else %}
{% endif %}
diff --git a/website/photos/views.py b/website/photos/views.py
index abc3b3baf..6ca2ed252 100644
--- a/website/photos/views.py
+++ b/website/photos/views.py
@@ -47,13 +47,6 @@ def get_context_data(self, **kwargs):
context["keywords"] = self.keywords
fetch_thumbnails([x.cover.file for x in context["object_list"] if x.cover])
- context[
- "has_processing_reference_faces"
- ] = self.request.member.reference_faces.filter(
- status=ReferenceFace.Status.PROCESSING,
- marked_for_deletion_at__isnull=True,
- ).exists()
-
context[
"has_rejected_reference_faces"
] = self.request.member.reference_faces.filter(
@@ -64,7 +57,6 @@ def get_context_data(self, **kwargs):
context["has_reference_faces"] = self.request.member.reference_faces.filter(
marked_for_deletion_at__isnull=True
).exists()
-
return context