From 16bcd967a89daadb76c909786c488da81c09d507 Mon Sep 17 00:00:00 2001 From: Monique Rio Date: Wed, 6 Nov 2024 10:01:18 -0500 Subject: [PATCH] adds version meta tag --- lib/services.rb | 4 ++++ views/layout.erb | 1 + 2 files changed, 5 insertions(+) diff --git a/lib/services.rb b/lib/services.rb index 705b4da..b8038c0 100644 --- a/lib/services.rb +++ b/lib/services.rb @@ -4,6 +4,10 @@ Services = Canister.new S = Services +S.register(:version) do + ENV["APP_VERSION"] || "APP_VERSION" +end + S.register(:solrcloud_on?) do ENV["SOLRCLOUD_ON"] == "true" end diff --git a/views/layout.erb b/views/layout.erb index 78c181d..3e1431c 100644 --- a/views/layout.erb +++ b/views/layout.erb @@ -3,6 +3,7 @@ + Library Search | <%= list.doc_title %>