{% extends "base.html" %} {% from '_comments.html' import render_comments %} {% from '_featured_image.html' import featured_image_block %} {% from '_archive.html' import archive_button, archived_chip %} {% block title %} {{ (plant.variety_name or plant.species_name or 'Plant') }}{% if plant.planting_name %} in {{ plant.planting_name }}{% elif plant.status in ('unplanted', 'idea') %} ({{ plant.status }}){% endif %} — Garden {% endblock %} {% block content %} {{ featured_image_block('plant', plant.id, plant.featured_image_path, (plant.variety_name or plant.species_name or 'Plant')) }}

{{ plant.quantity or '1' }}× {% if plant.variety_name %}{{ plant.variety_name }}{% endif %} {% if plant.species_name %}{{ plant.species_name }}{% endif %} {% if not plant.variety_name and not plant.species_name %}TBD{% endif %}

{# Edit-via-planting only makes sense for plants attached to one. Unplanted / idea plants are managed from /unplanted; there's no planting form to edit. #} {% if plant.planting_id_ %} Edit (in planting) {% endif %} {{ archive_button('plant', plant.id, plant.is_archived, '/plants/' ~ plant.id) }}
{% if plant.year_value %}{{ plant.year_value }}{% endif %} {% if plant.planting_id_ %} {{ plant.planting_name }} {% endif %} {% if plant.species_id %}{{ plant.species_name }}{% endif %} {% if plant.variety_id %}{{ plant.variety_name }}{% endif %} {% if area_info %}{{ area_info.path }}{% endif %} {% if plant.status %}{{ plant.status }}{% endif %}
{% if plant.notes %}

Overview history

{{ plant.notes }}
{% elif plant.planting_id_ %}

+ add overview (from planting page)

{% endif %} {{ render_comments(plant_comments, 'plant', plant.id, '/plants/' ~ plant.id, include_children=include_children, include_related=include_related, supports_children=supports_children) }} {% endblock %}