About page links to the source code and the running commit

APP_REPOSITORY_URL overrides the repository for a fork.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rickyandClaude Opus 5.5 committed 2026-11-07 10:38:41 -05:00
1 parent 61c3749793
commit bed07386ef
3 files changed
+16 -2

No files matched your search

+10
View File
@@ -7,6 +7,9 @@ class SystemInfo
omniauth omniauth_openid_connect rubyzip roo pdf-reader bcrypt
].freeze
# Where the source lives; APP_REPOSITORY_URL overrides it for a fork.
REPOSITORY_URL = ENV["APP_REPOSITORY_URL"].presence || "https://github.com/rickbarrette/simple-aircraft-manager-rails"
DATABASES = { "Main" => :primary, "Cache" => :cache, "Jobs" => :queue, "Cable" => :cable }.freeze
# Set by the Docker build (see Dockerfile); in development, read from git.
@@ -16,6 +19,13 @@ class SystemInfo
"unknown"
end
def repository_url = REPOSITORY_URL.chomp("/")
# The running commit on the repository host, when the revision is known.
def revision_url
"#{repository_url}/commit/#{revision}" if revision.match?(/\A\h{7,40}\z/)
end
def built_at
Time.zone.parse(ENV["APP_BUILT_AT"].to_s) if ENV["APP_BUILT_AT"].present?
rescue ArgumentError