From 08b244d3d23f496f81ad35d4063b290f27f22590 Mon Sep 17 00:00:00 2001 From: Erez Cohen Date: Thu, 7 Apr 2022 00:08:58 +0300 Subject: [PATCH] Creating dog owner homepage When the dog owner is logged in to Hotails, or when the home is pressed via navbar, All the daycares in the database will be shown to the dog owner on its homepage, with the possibility to check their profile. If the daycare doesn't have any profile picture, a default one will be presented. Signed-off-by: Ofir Matasas Signed-off-by: tamirmatok --- daycare/test_image.py | 3 ++- dogowner/templates/dogowner/dog_owner_homepage.html | 3 +-- static/CSS/dog_owner_homepage.css | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/daycare/test_image.py b/daycare/test_image.py index 742e95f..b796b4e 100644 --- a/daycare/test_image.py +++ b/daycare/test_image.py @@ -28,6 +28,7 @@ def test_daycare_has_customized_profile_image(self, create_image1, create_image2 assert daycare_profile_image != DEFAULT_DAYCARE_PROFILE_URL assert daycare_profile_image is not None - def test_daycare_has_default_profile_image_when_no_customized_picture_was_found(self, create_daycare_user): + def test_daycare_has_default_profile_image(self, create_daycare_user): daycare_profile_image = create_daycare_user.get_daycare_primary_image_url() assert daycare_profile_image == DEFAULT_DAYCARE_PROFILE_URL + assert daycare_profile_image is not None diff --git a/dogowner/templates/dogowner/dog_owner_homepage.html b/dogowner/templates/dogowner/dog_owner_homepage.html index 8434a05..2baf69f 100644 --- a/dogowner/templates/dogowner/dog_owner_homepage.html +++ b/dogowner/templates/dogowner/dog_owner_homepage.html @@ -22,5 +22,4 @@
{{ daycare.name }}
{% endfor %} - -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/static/CSS/dog_owner_homepage.css b/static/CSS/dog_owner_homepage.css index 7c77f17..a18c9b8 100644 --- a/static/CSS/dog_owner_homepage.css +++ b/static/CSS/dog_owner_homepage.css @@ -38,4 +38,5 @@ .card-img-top { height: 200px; -} \ No newline at end of file +} +