{# Reusable featured-image components. featured_image_block(entity_type, entity_id, image_path, name) Top-of-detail-page block. Click the image to replace it via file picker (auto-submits on file selection). When no image exists, shows a dashed placeholder tile with the same click-to-upload behavior. featured_image_thumb(image_path, alt='', size='') Tiny inline thumbnail for cards/tiles in list views. Renders nothing if image_path is empty so cards without images don't get a blank space. Keep entity_path map in sync with FEATURED_IMAGE_ENTITIES in main.py. #} {%- set _entity_paths = { 'area': 'areas', 'planting': 'plantings', 'plant': 'plants', 'station': 'stations', 'species': 'species', 'variety': 'varieties', 'supply': 'supplies', 'year': 'years', } -%} {% macro featured_image_block(entity_type, entity_id, image_path, name='') %} {%- set path = _entity_paths[entity_type] -%}