Merge commit '5356557f7b0009d43d7f437ada1a0c564a53dcc5'

# Conflicts:
#	src/game.rs
This commit is contained in:
Marie Birner
2025-08-02 20:57:07 +02:00
3 changed files with 34 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
use crate::{page::new, random_names::get_name_by_uuid, Backend};
use crate::{page::new, Backend};
use axum::{
extract::{Path, State},
response::{IntoResponse, Redirect, Response},
@@ -50,9 +50,7 @@ async fn index(State(backend): State<Arc<Backend>>, cookies: CookieJar) -> Respo
(rank.rank)"."
}
@if rank.uuid == client.uuid { (PreEscaped("<mark>")) }
@if let Some(name) = rank.name { (name) } @else {
"Anonymous "
(get_name_by_uuid(&rank.uuid))}
(rank.name)
@if rank.uuid == client.uuid { (PreEscaped("</mark>")) }
}
span.font-headline.cam {