From 6794f7d6ba934b479b90b187e6ec5591f42dfe89 Mon Sep 17 00:00:00 2001 From: spikecodes <19519553+spikecodes@users.noreply.github.com> Date: Sat, 5 Dec 2020 21:29:25 -0800 Subject: [PATCH] Show and Log Version --- src/main.rs | 2 +- static/style.css | 5 +++++ templates/base.html | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index c3bed73..daa8a23 100644 --- a/src/main.rs +++ b/src/main.rs @@ -40,7 +40,7 @@ async fn main() -> std::io::Result<()> { } // start http server - println!("Running Libreddit on {}!", address.clone()); + println!("Running Libreddit v{} on {}!", env!("CARGO_PKG_VERSION"), address.clone()); HttpServer::new(|| { App::new() diff --git a/static/style.css b/static/style.css index 4357fe6..bfa9127 100644 --- a/static/style.css +++ b/static/style.css @@ -61,6 +61,11 @@ span { background: #151515; } +#version { + color: white; + opacity: 25%; +} + /* Subreddit */ .subreddit { diff --git a/templates/base.html b/templates/base.html index c882d93..10bacf9 100644 --- a/templates/base.html +++ b/templates/base.html @@ -21,7 +21,7 @@ {% block body %} {% block header %}
- libreddit. + libreddit. v{{ env!("CARGO_PKG_VERSION") }} GITHUB
{% endblock %}