From 037bc7cd0fbe94f5685c5bda96f4f4c7ee541377 Mon Sep 17 00:00:00 2001 From: Edward Loveall Date: Tue, 4 Jan 2022 21:26:23 -0500 Subject: [PATCH] Add visible version This is to be able to track which instances (including the main one) have which fixes --- src/app.cr | 1 + src/components/shared/layout_footer.cr | 7 ++++++- src/css/app.css | 4 ++++ src/version.cr | 3 +++ 4 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 src/version.cr diff --git a/src/app.cr b/src/app.cr index 15afde1..1d7e49b 100644 --- a/src/app.cr +++ b/src/app.cr @@ -3,6 +3,7 @@ require "./shards" # Load the asset manifest Lucky::AssetHelpers.load_manifest "public/mix-manifest.json" +require "./version" require "../config/server" require "../config/**" require "./app_database" diff --git a/src/components/shared/layout_footer.cr b/src/components/shared/layout_footer.cr index b3f1541..45437ba 100644 --- a/src/components/shared/layout_footer.cr +++ b/src/components/shared/layout_footer.cr @@ -3,7 +3,12 @@ class Shared::LayoutFooter < BaseComponent section do footer do para do - a "Source code", href: "https://sr.ht/~edwardloveall/scribe" + span do + a "Source code", href: "https://sr.ht/~edwardloveall/scribe" + end + span do + text "Version: #{Scribe::VERSION}" + end end end end diff --git a/src/css/app.css b/src/css/app.css index 23a9d69..a87e8c7 100644 --- a/src/css/app.css +++ b/src/css/app.css @@ -30,3 +30,7 @@ figure iframe { background: rgba(221, 221, 221, 0.3); } } + +footer p span { + margin-right: 1em; +} diff --git a/src/version.cr b/src/version.cr new file mode 100644 index 0000000..a369ddd --- /dev/null +++ b/src/version.cr @@ -0,0 +1,3 @@ +module Scribe + VERSION = "2022-01-04" +end