mirror of
https://github.com/skoelle/icloud-contacts-sync.git
synced 2026-09-17 15:30:24 +00:00
web display age
This commit is contained in:
@@ -207,6 +207,7 @@ def web_dashboard(
|
||||
"contact_count": contact_count,
|
||||
"upcoming_birthdays": upcoming_birthdays,
|
||||
"last_sync": last_sync,
|
||||
"current_year": date.today().year,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
@@ -238,7 +238,12 @@
|
||||
<span style="color: #888; font-size: 0.8rem;"> · {{ b.organization }}</span>
|
||||
{% endif %}
|
||||
</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>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user