include git hash in footer
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<footer id="page-footer">
|
||||
Running Danbooru <%= link_to "v#{Danbooru.config.version}", "https://github.com/r888888888/danbooru/releases" %>
|
||||
(<%= Rails.application.config.x.git_hash %>)
|
||||
– <%= link_to "Rules", terms_of_service_path %>
|
||||
– <%= link_to "Contact", contact_path %>
|
||||
<% if CurrentUser.user.enable_post_navigation %>
|
||||
|
||||
@@ -21,6 +21,8 @@ module Danbooru
|
||||
config.action_mailer.perform_deliveries = true
|
||||
config.log_tags = [lambda {|req| "PID:#{Process.pid}"}]
|
||||
config.active_record.raise_in_transactional_callbacks = true
|
||||
|
||||
config.x.git_hash = `git rev-parse --short HEAD`.strip
|
||||
end
|
||||
|
||||
I18n.enforce_available_locales = false
|
||||
|
||||
Reference in New Issue
Block a user