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: