diff --git a/Cargo.lock b/Cargo.lock index 40038c3..d8e105e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3255,7 +3255,7 @@ dependencies = [ [[package]] name = "web-petting" -version = "0.1.0" +version = "0.1.1" dependencies = [ "chrono", "cot", diff --git a/Cargo.toml b/Cargo.toml index 2b76e97..29c7365 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "web-petting" -version = "0.1.0" +version = "0.1.2" edition = "2024" [dependencies] diff --git a/src/i18n.rs b/src/i18n.rs index 22581c0..3c91785 100644 --- a/src/i18n.rs +++ b/src/i18n.rs @@ -181,7 +181,9 @@ pub struct Translations { pub landing_thank_you_back: &'static str, pub landing_guarantee: &'static str, pub landing_testimonials_title: &'static str, + pub landing_form_consent: &'static str, pub landing_footer_text: &'static str, + pub landing_footer_copyright: &'static str, // Testimonials admin pub nav_testimonials: &'static str, @@ -442,7 +444,9 @@ static RU: Translations = Translations { landing_thank_you_back: "Вернуться на главную", landing_guarantee: "Порядочность, честность и строгое выполнение ваших требований гарантировано.", landing_testimonials_title: "Отзывы", + landing_form_consent: "Я даю согласие на обработку персональных данных", landing_footer_text: "Пет-ситтинг — забота о вашем питомце", + landing_footer_copyright: "Все права защищены", nav_testimonials: "Отзывы", testimonials_title: "Отзывы", @@ -635,7 +639,9 @@ static EN: Translations = Translations { landing_thank_you_back: "Back to Home", landing_guarantee: "Integrity, honesty, and strict fulfillment of your requirements guaranteed.", landing_testimonials_title: "Testimonials", + landing_form_consent: "I consent to the processing of my personal data", landing_footer_text: "Pet Sitting — caring for your pet", + landing_footer_copyright: "All rights reserved", nav_testimonials: "Testimonials", testimonials_title: "Testimonials", @@ -657,6 +663,10 @@ static EN: Translations = Translations { }; impl Translations { + pub fn app_version(&self) -> &'static str { + env!("CARGO_PKG_VERSION") + } + pub fn lead_status(&self, status: &str) -> &'static str { match status { "new" => self.status_new, diff --git a/templates/admin/layout.html b/templates/admin/layout.html index 9af5017..21712f4 100644 --- a/templates/admin/layout.html +++ b/templates/admin/layout.html @@ -6,8 +6,8 @@