diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 8dc46536..17798502 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -34,22 +34,29 @@ <%= yield :modals %> diff --git a/config/initializers/version.rb b/config/initializers/version.rb new file mode 100644 index 00000000..3e2c9681 --- /dev/null +++ b/config/initializers/version.rb @@ -0,0 +1,6 @@ +Hdm::VERSION = + if system("git --version >>/dev/null 2>&1") + `git describe`.chomp + else + "unknown" + end