From 24aa046f8cf03419910b98e1dd671691a79a69e7 Mon Sep 17 00:00:00 2001 From: Greg Burri Date: Tue, 8 Apr 2025 18:11:23 +0200 Subject: [PATCH] Add application version to footer in base template and define VERSION constant --- backend/src/consts.rs | 3 +++ backend/templates/base.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/src/consts.rs b/backend/src/consts.rs index 8f20790..33a11a5 100644 --- a/backend/src/consts.rs +++ b/backend/src/consts.rs @@ -1,5 +1,8 @@ use std::time::Duration; +/// Current version of the application. +pub const VERSION: &str = env!("CARGO_PKG_VERSION"); + /// The name of the configuration file. /// it's located in the current directory. pub const FILE_CONF: &str = "conf.ron"; diff --git a/backend/templates/base.html b/backend/templates/base.html index ecef2a9..692a50c 100644 --- a/backend/templates/base.html +++ b/backend/templates/base.html @@ -31,6 +31,6 @@ {% block body_container %}{% endblock %} - + \ No newline at end of file