diff --git a/plants/templates/plants/location_detail.html b/plants/templates/plants/location_detail.html index aa29e25..d1c8c61 100644 --- a/plants/templates/plants/location_detail.html +++ b/plants/templates/plants/location_detail.html @@ -1,2 +1,67 @@ +{# plants/templates/plants/location_detail.html #} {% extends "plants/base.html" %} -{% block content %}{{ location.name }}{% endblock %} +{% block title %}{{ location.name }} — BloomBase{% endblock %} +{% block content %} + + +
+ {% if location.cover_photo %} + {{ location.name }} + {% else %} +
+ {% endif %} + +
+ + ← Back + + Edit +
+ +
+ + +

{{ location.name }}

+

+ {{ plants.count }} plant{{ plants.count|pluralize }} +

+ + + {% if plants %} +
+ {% for plant in plants %} + + +
+ {% if plant.species and plant.species.api_image_url %} + {{ plant.name }} + {% elif plant.thumbnail_url %} + {{ plant.name }} + {% else %} +
🌿
+ {% endif %} +
+ +
+
{{ plant.name }}
+ {% if plant.species %} +
{{ plant.species.scientific_name }}
+ {% endif %} +
+
+ {% endfor %} +
+ {% else %} + +
+
🪴
+

No plants here yet.

+ Identify a plant +
+ {% endif %} + +
+{% endblock %}