From a3d72f5298b500ce0a81417b2a15fb4a4462d8ed Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Mon, 5 Jan 2026 15:08:59 +0100 Subject: [PATCH] Add chill bundles version in application footer with VersionProvider service --- .changes/unreleased/Feature-20260105-150817.yaml | 6 ++++++ .../Resources/views/Layout/_footer.html.twig | 2 +- src/Bundle/ChillMainBundle/Service/VersionProvider.php | 2 +- src/Bundle/ChillMainBundle/translations/messages.fr.yml | 3 +++ 4 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 .changes/unreleased/Feature-20260105-150817.yaml diff --git a/.changes/unreleased/Feature-20260105-150817.yaml b/.changes/unreleased/Feature-20260105-150817.yaml new file mode 100644 index 000000000..c1d5977d3 --- /dev/null +++ b/.changes/unreleased/Feature-20260105-150817.yaml @@ -0,0 +1,6 @@ +kind: Feature +body: Display version of chill bundles in application footer +time: 2026-01-05T15:08:17.317719064+01:00 +custom: + Issue: "473" + SchemaChange: No schema change diff --git a/src/Bundle/ChillMainBundle/Resources/views/Layout/_footer.html.twig b/src/Bundle/ChillMainBundle/Resources/views/Layout/_footer.html.twig index 18e8d2a67..22a95834b 100644 --- a/src/Bundle/ChillMainBundle/Resources/views/Layout/_footer.html.twig +++ b/src/Bundle/ChillMainBundle/Resources/views/Layout/_footer.html.twig @@ -2,7 +2,7 @@

{{ 'This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License'|trans|raw }}
- {{ 'Running chill version %version%'|trans({ '%version%': chillBundlesVersion }) }} + {{ 'footer.Running chill version %version%'|trans({ '%version%': chillBundlesVersion.getFormattedVersion() }) }}
{{ 'User manual'|trans }} diff --git a/src/Bundle/ChillMainBundle/Service/VersionProvider.php b/src/Bundle/ChillMainBundle/Service/VersionProvider.php index c35f22933..5a0fea1dd 100644 --- a/src/Bundle/ChillMainBundle/Service/VersionProvider.php +++ b/src/Bundle/ChillMainBundle/Service/VersionProvider.php @@ -45,6 +45,6 @@ class VersionProvider return 'Version unavailable'; } - return 'v'.$version; + return $version; } } diff --git a/src/Bundle/ChillMainBundle/translations/messages.fr.yml b/src/Bundle/ChillMainBundle/translations/messages.fr.yml index b6343312e..774f25a85 100644 --- a/src/Bundle/ChillMainBundle/translations/messages.fr.yml +++ b/src/Bundle/ChillMainBundle/translations/messages.fr.yml @@ -48,6 +48,9 @@ See: Voir Name: Nom Label: Nom +footer: + Running chill version %version%: Version chill bundles utilisé %version% + user: current_user: Utilisateur courant profile: