Fix docker image caching. Add version indicator to admin UI
build / build-linux-amd64 (push) Successful in 1m57s
build / build-linux-amd64 (push) Successful in 1m57s
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user