diff --git a/filed/src/env.rs b/filed/src/env.rs index 4f43568..46aac2e 100644 --- a/filed/src/env.rs +++ b/filed/src/env.rs @@ -18,6 +18,7 @@ pub struct Redis { #[derive(Debug, Clone)] pub struct VersionData { pub commit: String, + pub short_commit: String, pub branch: String } @@ -25,6 +26,7 @@ impl Default for VersionData { fn default() -> Self { VersionData { commit: env!("COMMIT_HASH").to_string(), + short_commit: env!("COMMIT_HASH").to_string().chars().take(6).collect(), branch: env!("COMMIT_BRANCH").to_string() } } diff --git a/filed/templates/base.html b/filed/templates/base.html index 761bbb5..4e23bf8 100644 --- a/filed/templates/base.html +++ b/filed/templates/base.html @@ -66,6 +66,13 @@