spec: show birthdays until a week out

This commit is contained in:
Robert Perce 2026-04-05 12:05:13 -05:00
parent 4f141b01c3
commit c12975926d
4 changed files with 65 additions and 44 deletions

View file

@ -57,7 +57,7 @@ fn birthdays_section(
div id="birthdays" {
h2 { "Birthdays" }
#birthday-sections {
.datelist {
.datelist #upcoming {
h3 { "upcoming" }
@for contact in &upcoming_birthdays[0..std::cmp::min(3, upcoming_birthdays.len())] {
a href=(format!("/contact/{}", contact.contact_id)) {
@ -68,7 +68,7 @@ fn birthdays_section(
}
}
}
.datelist {
.datelist #recent {
h3 { "recent" }
@for contact in &prev_birthdays[0..std::cmp::min(3, prev_birthdays.len())] {
a href=(format!("/contact/{}", contact.contact_id)) {