{% 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 content %} {{ featured_image_block('variety', variety.id, variety.featured_image_path, variety.name) }} {%- set species_options = [] -%} {%- for s in species_list -%}{%- set _ = species_options.append([s.id, s.name]) -%}{%- endfor -%}

{{ variety.name }} ({{ variety.species_name or '— species —' }})

{{ archive_button('variety', variety.id, variety.is_archived, '/varieties/' ~ variety.id) }}
{% if variety.species_type or variety.species_primary_function %}
{{ (variety.species_type or 'plant')|capitalize }} {{ (variety.species_primary_function or 'edible')|capitalize }} inherited from species
{% endif %}
Sketch spacing: per sq.ft {% if species_default %} {% if variety.plants_per_unit or variety.space_per_unit_sqft %} Override active. Clear both to inherit species default ({{ species_default.plants_per_unit }} per {{ species_default.space_per_unit_sqft }} sq.ft). {% else %} Inheriting species default ({{ species_default.plants_per_unit }} per {{ species_default.space_per_unit_sqft }} sq.ft). {% endif %} {% else %} No species linked — falling back to 1 per 1 sq.ft. {% endif %}

Overview history

{{ variety.description or '+ add overview' }}

Plants

{{ plant_count }} plant{{ '' if plant_count == 1 else 's' }} of this variety across all plantings.

{{ render_comments(variety_comments, 'variety', variety.id, '/varieties/' ~ variety.id, include_children=include_children, include_related=include_related, supports_children=supports_children) }}
{% endblock %}