From 7f2a9b41dedd4f3b5e5be3fd7f9c0dbc1765cf8b Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sat, 29 Nov 2025 14:24:49 -0500 Subject: [PATCH] Add dedicated Spouse section to individual person view MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Enhanced the person detail page with a proper Spouse relationship section to match the existing Parents, Siblings, and Children sections. Features: - Dedicated "Spouse" section between Parents and Siblings - Clickable link to spouse's person page if in family tree - Displays spouse metadata (generation, Kekulé number, lifespan) - Shows "not in family tree data" note for spouses not in GEDCOM - Consistent styling with other relationship sections This makes spouse information more prominent and easier to find, improving navigation between married couples in the family tree. Previously spouse was only shown inline in the vitals section. Now it has its own dedicated section for better visibility and consistency with how other relationships are displayed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../templates/family_tree_person.html | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/kjvstudy_org/templates/family_tree_person.html b/kjvstudy_org/templates/family_tree_person.html index 19474dd..a0e3ca6 100644 --- a/kjvstudy_org/templates/family_tree_person.html +++ b/kjvstudy_org/templates/family_tree_person.html @@ -250,6 +250,35 @@ {% endif %} +{% if person.spouse %} +
+

Spouse

+
+ {% set spouse_id = None %} + {% set spouse_data = None %} + {% for pid, p in family_tree_data.items() %} + {% if p.name == person.spouse %} + {% set spouse_id = pid %} + {% set spouse_data = p %} + {% endif %} + {% endfor %} +
+ {% if spouse_id %} + {{ person.spouse }} + {% if spouse_data and (spouse_data.generation or spouse_data.kekule_number is not none or spouse_data.age_at_death != "Unknown") %} + + {% if spouse_data.generation %}generation {{ spouse_data.generation }}{% endif %}{% if spouse_data.kekule_number is not none %}{% if spouse_data.generation %}, {% endif %}Kekulé #{{ spouse_data.kekule_number }}{% endif %}{% if spouse_data.age_at_death != "Unknown" %}{% if spouse_data.generation or spouse_data.kekule_number is not none %}, {% endif %}lived {{ spouse_data.age_at_death }}{% endif %} + + {% endif %} + {% else %} + {{ person.spouse }} + not in family tree data + {% endif %} +
+
+
+{% endif %} + {% if person.siblings|length > 0 %}

Siblings ({{ person.siblings|length }})