Add visible version

This is to be able to track which instances (including the main one)
have which fixes
This commit is contained in:
Edward Loveall 2022-01-04 21:26:23 -05:00
parent f7e82ffd03
commit 037bc7cd0f
No known key found for this signature in database
GPG Key ID: 789A4AE983AC8901
4 changed files with 14 additions and 1 deletions

View File

@ -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"

View File

@ -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

View File

@ -30,3 +30,7 @@ figure iframe {
background: rgba(221, 221, 221, 0.3);
}
}
footer p span {
margin-right: 1em;
}

3
src/version.cr Normal file
View File

@ -0,0 +1,3 @@
module Scribe
VERSION = "2022-01-04"
end