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,8 +3,13 @@ class Shared::LayoutFooter < BaseComponent
section do
footer do
para do
span do
a "Source code", href: "https://sr.ht/~edwardloveall/scribe"
end
span do
text "Version: #{Scribe::VERSION}"
end
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