Fix docker image caching. Add version indicator to admin UI
build / build-linux-amd64 (push) Successful in 1m57s

This commit is contained in:
2026-05-24 23:02:34 +02:00
parent b044ab4de9
commit d3c1128f23
7 changed files with 13 additions and 8 deletions
+6 -2
View File
@@ -277,6 +277,8 @@ async fn serve_login(headers: HeaderMap) -> Response {
}
/// Apply i18n placeholders to the embedded `index.html` template.
/// `APP_VERSION` is intentionally distinct from the `T_*` translation
/// tokens — it's a server-side constant, not a localizable string.
fn render_index(lang: Lang) -> String {
let body = INDEX_HTML
.replace("{{LANG_CODE}}", lang.code())
@@ -291,7 +293,8 @@ fn render_index(lang: Lang) -> String {
.replace("{{T_NAV_PROFILE}}", t(lang, "nav.profile"))
.replace("{{T_NAV_SIGNOUT}}", t(lang, "nav.signout"))
.replace("{{T_LANGUAGE}}", t(lang, "common.language"))
.replace("{{T_LOADING}}", t(lang, "common.loading"));
.replace("{{T_LOADING}}", t(lang, "common.loading"))
.replace("{{APP_VERSION}}", crate::version::VERSION);
apply_lang_selected(body, lang)
}
@@ -310,7 +313,8 @@ fn render_login(lang: Lang) -> String {
.replace(
"{{T_SIGNIN_WITH_JSON}}",
&json_string(t(lang, "login.signin_with")),
);
)
.replace("{{APP_VERSION}}", crate::version::VERSION);
apply_lang_selected(body, lang)
}