diff --git a/app/views/shared/_navigation.html.erb b/app/views/shared/_navigation.html.erb index 01f534a9f..f316d1951 100644 --- a/app/views/shared/_navigation.html.erb +++ b/app/views/shared/_navigation.html.erb @@ -10,13 +10,19 @@ - <% if Rails.env.production? %> - - <% else %> + <% + show_version = !Rails.env.production? + if ENV['NAVBAR_SHOW_VERSION'].present? + show_version = YAML.load(ENV['NAVBAR_SHOW_VERSION']) + end + %> + <% if show_version %> <%= Constants::APP_VERSION %> + <% else %> + <% end %>