only one place to 'calculate' the name

This commit is contained in:
2025-08-02 21:15:50 +02:00
parent 63a10d55fc
commit 33008e6b32
3 changed files with 41 additions and 49 deletions

View File

@@ -45,13 +45,13 @@ async fn index(State(backend): State<Arc<Backend>>, cookies: CookieJar) -> Respo
span.font-headline.rank.text-muted {
(rank.rank)"."
}
@if rank.uuid == client.uuid { (PreEscaped("<mark>")) }
(rank.name)
@if rank.uuid == client.uuid { (PreEscaped("</mark>")) }
@if rank.client == client { (PreEscaped("<mark>")) }
(rank.client.get_display_name())
@if rank.client == client{ (PreEscaped("</mark>")) }
}
span.font-headline.cam {
(rank.amount)(PreEscaped("&nbsp;"))"📸"
}
(rank.amount)(PreEscaped("&nbsp;"))"📸"
}
}
}
}