From 08884536d791e66a713f699f39c7bd7d9989c7f5 Mon Sep 17 00:00:00 2001 From: Priec Date: Sat, 16 May 2026 17:40:15 +0200 Subject: [PATCH] contrast added --- ht_booking/assets/views/base.html | 15 +++++++++++++++ ht_booking/src/controllers/calendar.rs | 7 ++++--- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/ht_booking/assets/views/base.html b/ht_booking/assets/views/base.html index da3a289..9c544c3 100644 --- a/ht_booking/assets/views/base.html +++ b/ht_booking/assets/views/base.html @@ -38,6 +38,21 @@ {% block head %}{% endblock head %} diff --git a/ht_booking/src/controllers/calendar.rs b/ht_booking/src/controllers/calendar.rs index 3dfd478..5c6b4e2 100644 --- a/ht_booking/src/controllers/calendar.rs +++ b/ht_booking/src/controllers/calendar.rs @@ -93,12 +93,13 @@ pub struct CalendarPage { pub rows: Vec, } -/// Resolves the UI language from the `lang` cookie (`sk` or `en`, default `en`). +/// Resolves the UI language from the `lang` cookie. Slovak is the default; +/// English applies only when the cookie explicitly asks for it. #[must_use] pub fn current_lang(jar: &CookieJar) -> String { match jar.get("lang").map(|c| c.value().to_string()) { - Some(ref l) if l == "sk" => "sk".to_string(), - _ => "en".to_string(), + Some(ref l) if l == "en" => "en".to_string(), + _ => "sk".to_string(), } }