Skip to content

Commit

Permalink
add version to footer
Browse files Browse the repository at this point in the history
  • Loading branch information
amtuannguyen committed Jan 11, 2025
1 parent e8a6a54 commit 60a4ae4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
</div>
</div>
</div>
<footer class="py-1 my-5 border-top">
<div class="mb-3">
<p class="text-body-secondary">&copy; York University Libraries. All rights reserved. (Version: <%= Rails.application.config.git_commit_hash %>)</p>
</div>
</footer>
</div>
</body>
</html>
1 change: 1 addition & 0 deletions config/initializers/git.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Rails.application.config.git_commit_hash = `git rev-parse --short HEAD`.chomp

0 comments on commit 60a4ae4

Please sign in to comment.