Skip to content

Commit

Permalink
Merge pull request #139 from mlibrary/add-version-meta-tag
Browse files Browse the repository at this point in the history
adds version meta tag
  • Loading branch information
erinesullivan authored Nov 6, 2024
2 parents da794fe + 16bcd96 commit 3fce843
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/services.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions views/layout.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<meta name="version" content="<%=S.version%>">
<title>Library Search | <%= list.doc_title %></title>
<link rel="shortcut icon" href="<%=S.base_url%>/favicon.ico">
<link rel="icon" href="<%=S.base_url%>/favicon.svg" type="image/svg+xml">
Expand Down

0 comments on commit 3fce843

Please sign in to comment.