move emojis into locales, to be able to run maudfmt

This commit is contained in:
2025-08-03 12:20:12 +02:00
parent 811d29b9ec
commit b90590d3b5
5 changed files with 118 additions and 133 deletions

View File

@@ -29,27 +29,21 @@ async fn index(
let mut page = Page::new(req.lang);
page.messages(messages);
let markup = page.content(html! {
hgroup {
h1 { "Who finds the most cameras?" }
}
p {
mark { "TODO: Explanation of AEF / digital shadows / search game" }
}
div.mb-sm {
(client.get_display_name())
", do you want to be named something different? No worries, change here 👇"
}
form action="/name" method="post" {
fieldset role="group" {
input
name="name"
placeholder="✨ Your new name starts here ✨"
aria-label="Name";
input type="submit" value="Save";
hgroup {
h1 { "Who finds the most cameras?" }
}
p {
mark { "TODO: Explanation of AEF / digital shadows / search game" }
}
div.mb-sm { (t!("ask_to_change_name", name = client.get_display_name())) }
form action="/name" method="post" {
fieldset role="group" {
input name="name" placeholder=(t!("funny_name_change_placeholder")) aria-label="Name";
input type="submit" value="Save";
}
}
}
p.mb-0 {
"You have found "
@@ -62,9 +56,7 @@ async fn index(
ol.flex.small {
@for sighting in &sightings {
li {
(sighting.camera.name)
}
li { (sighting.camera.name) }
}
}
@@ -79,7 +71,11 @@ async fn index(
(rank.client.get_display_name())
@if rank.client == client { (PreEscaped("</mark>")) }
}
span.font-headline.font-lg { (rank.amount) (PreEscaped("&nbsp;")) "📸" }
span.font-headline.font-lg {
(rank.amount)
(PreEscaped("&nbsp;"))
(t!("icon_camera"))
}
}
}
}
@@ -120,7 +116,7 @@ async fn game(
async fn not_found(cookies: CookieJar, headers: HeaderMap) -> Markup {
let lang = language(&cookies, &headers);
Page::new(lang).content(html! {
h1 { "uups" }
h1 { "uups" }
})
}