diff --git a/plants/templates/plants/partials/photo_gallery.html b/plants/templates/plants/partials/photo_gallery.html index 69a8363..a59ec96 100644 --- a/plants/templates/plants/partials/photo_gallery.html +++ b/plants/templates/plants/partials/photo_gallery.html @@ -45,3 +45,15 @@ + +{% if request.htmx %} +
+{% if plant.species and plant.species.api_image_url %} +{{ plant.species.common_name }} +{% elif plant.thumbnail_url %} +{{ plant.name }} +{% else %} +
🌿
+{% endif %} +
+{% endif %}