{% extends "base.html" %} {% block title %}Home{% endblock %} {% block content %}
{% for plant in plants %}
{% if plant.picture %} {{ plant.name }} {% else %} No image available {% endif %}

{{ plant.name }}

{% if plant.climate_icon %} Climate icon {% endif %} {{ plant.climate if plant.climate else 'None' }} {{ plant.climate_description if plant.climate_description else 'No description' }} {% if plant.environment_icon %} Environment icon {% endif %} {{ plant.environment if plant.environment else 'None' }} {{ plant.environment_description if plant.environment_description else 'No description' }} {% if plant.light_icon %} Light icon {% endif %} {{ plant.light if plant.light else 'None' }} {{ plant.light_description if plant.light_description else 'No description' }} {% if plant.toxicity_icon %} Toxicity icon {% endif %} {{ plant.toxicity if plant.toxicity else 'None' }} {{ plant.toxicity_description if plant.toxicity_description else 'No description' }} {% if plant.size_icon %} Size icon {% endif %} {{ plant.size if plant.size else 'None' }} {{ plant.size_description if plant.size_description else 'No description' }} {% if plant.care_difficulty_icon %} Care difficulty icon {% endif %} {{ plant.care_difficulty if plant.care_difficulty else 'None' }} {{ plant.care_difficulty_description if plant.care_difficulty_description else 'No description' }} {% if plant.growth_rate_icon %} Growth rate icon {% endif %} {{ plant.growth_rate if plant.growth_rate else 'None' }} {{ plant.growth_rate_description if plant.growth_rate_description else 'No description' }}

{{ plant.description[:120] }}{% if plant.description and plant.description|length > 120 %}...{% endif %}

Added on
{% endfor %}
{% endblock %}