+
+ {% if plant.watering or plant.sunlight or plant.species %}
+
{% if plant.watering %}
-
{{ plant.get_watering_display }}
- {% elif plant.species.watering %}
-
💧 {{ plant.species.watering }}
+
+ 💧
+ {{ plant.get_watering_display }}
+
+ {% elif plant.species and plant.species.watering %}
+
+ 💧
+ {{ plant.species.watering }}
+
{% endif %}
{% if plant.sunlight %}
-
{{ plant.get_sunlight_display }}
- {% elif plant.species.sunlight %}
-
☀️ {{ plant.species.sunlight }}
- {% endif %}
- {% if plant.species.max_height_cm %}
-
📏 up to {{ plant.species.max_height_cm }} cm
- {% endif %}
- {% if plant.species.frost_hardiness_c is not None %}
-
❄️ {{ plant.species.frost_hardiness_c }}°C
- {% endif %}
- {% if plant.species.planting_density_m2 %}
-
🌿 {{ plant.species.planting_density_m2 }}/m²
- {% endif %}
- {% if plant.species.growth_rate %}
-
🌱 {{ plant.species.growth_rate }}
- {% endif %}
-
-{% endif %}
-{% if plant.species and plant.species.vpc_slug %}
-
-
-
-{% endif %}
-
-{% load plant_extras %}
-{% if plant.bloom_months %}
-
-
🌸 Bloom
-
{% month_strip plant.bloom_months %}
-
-{% endif %}
-
-{% if plant.notes %}
-
-
-
{{ plant.notes|linebreaksbr }}
+
+ ☀️
+ {{ plant.get_sunlight_display }}
+
+ {% elif plant.species and plant.species.sunlight %}
+
+ ☀️
+ {{ plant.species.sunlight }}
-
-{% endif %}
-
-{% if plant.pruning_months %}
-{% include "plants/partials/pruning_strip.html" %}
-{% endif %}
-
-
- {% include "plants/partials/photo_gallery.html" %}
-
-
-
+ {% if plant.species and plant.species.frost_hardiness_c is not None %}
+
+ 🌡️
+ {{ plant.species.frost_hardiness_c }}°C min
+
+ {% endif %}
+ {% if plant.species and plant.species.max_height_cm %}
+
+ 📏
+ {{ plant.species.max_height_cm }} cm
+
+ {% endif %}
+
+ {% endif %}
+
+ {% if plant.bloom_months %}
+
+
🌸 Bloom months
+ {% month_strip plant.bloom_months %}
+
+ {% endif %}
+
+
+ {% if plant.notes %}
+
+
{{ plant.notes|linebreaksbr }}
+
+ {% endif %}
+
+
+ {% if plant.pruning_months %}
+ {% include "plants/partials/pruning_strip.html" %}
+ {% endif %}
+
+
+
+ {% include "plants/partials/photo_gallery.html" %}
+
+
+
+
+
+
{% endblock %}
diff --git a/plants/views/plants.py b/plants/views/plants.py
index 1931250..5c793fc 100644
--- a/plants/views/plants.py
+++ b/plants/views/plants.py
@@ -42,6 +42,7 @@ def plant_detail(request, pk):
'pruning_status': pruning_status(plant, today),
'log_form': PruningLogForm(initial={'pruned_on': today}),
'today': today,
+ 'active_tab': 'garden',
})