#[derive(Serialize,Debug)]
struct LoadingRenderContext<'r> {
- ptoken: &'r RawTokenVal,
+ game: String,
+ nick: String,
layout: PresentationLayout,
+ ptoken: &'r RawTokenVal,
}
#[get("/")]
#[throws(OE)]
let gpl = g.gs.players.byid(ia.i.ident)?;
let layout = layout.unwrap_or(gpl.layout);
let c = LoadingRenderContext {
+ nick: gpl.nick.clone(),
+ game: g.name.to_string(),
ptoken: &ia.raw_token,
layout,
};
There is NO WARRANTY. -->
<html>
<head>
- <title>xxx game name - xxx nick - Otter
+ <title>{{ game | escape }} - {{ nick | escape }} - Otter
</title>
<link rel="license" href="/_/libre">
<script defer>let wasm_input = fetch('/_/wasm.wasm');</script>