web display age

This commit is contained in:
2026-08-05 06:12:59 +02:00
parent 447528b5ff
commit 375937d8c5
2 changed files with 7 additions and 1 deletions
+1
View File
@@ -207,6 +207,7 @@ def web_dashboard(
"contact_count": contact_count, "contact_count": contact_count,
"upcoming_birthdays": upcoming_birthdays, "upcoming_birthdays": upcoming_birthdays,
"last_sync": last_sync, "last_sync": last_sync,
"current_year": date.today().year,
}, },
) )
+6 -1
View File
@@ -238,7 +238,12 @@
<span style="color: #888; font-size: 0.8rem;"> · {{ b.organization }}</span> <span style="color: #888; font-size: 0.8rem;"> · {{ b.organization }}</span>
{% endif %} {% endif %}
</div> </div>
<div class="birthday-date">{{ b.birthday }}</div> <div class="birthday-date">
{{ b.birthday.strftime('%d.%m.') }}
{% if b.birthday.year and b.birthday.year < current_year %}
· {{ current_year - b.birthday.year }} Jahre
{% endif %}
</div>
</div> </div>
{% endfor %} {% endfor %}
</div> </div>