Skip to content

Commit

Permalink
add git commit to footer
Browse files Browse the repository at this point in the history
  • Loading branch information
amtuannguyen committed Jan 11, 2025
1 parent fc2f557 commit 7fe418c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
</main>

<footer class="bg-body-secondary text-dark py-2 text-center d-flex align-items-center justify-content-center">
<p class="mb-0 p-2">Electronic Thesis and Dissertation - York University Libraries</p>
<p class="mb-0 p-2">Electronic Thesis and Dissertation - York University Libraries (Version: <%= Rails.application.config.git_commit_hash %>)</p>
</footer>

<%= yield(:scripts) %>
Expand Down
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 7fe418c

Please sign in to comment.