Skip to content

Commit

Permalink
Creating dog owner homepage
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: tamirmatok <[email protected]>
  • Loading branch information
ErezCohenn authored and tamirmatok committed May 4, 2022
1 parent 467add9 commit 08b244d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion daycare/test_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 1 addition & 2 deletions dogowner/templates/dogowner/dog_owner_homepage.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@ <h5 class="card-title">{{ daycare.name }}</h5>
{% endfor %}
</div>
</div>

{% endblock %}
{% endblock %}
3 changes: 2 additions & 1 deletion static/CSS/dog_owner_homepage.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@
.card-img-top
{
height: 200px;
}
}

0 comments on commit 08b244d

Please sign in to comment.