From 34a005ec0e24713cf7ebbc2ac433ab8fcf7b638a Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Fri, 28 Oct 2011 11:17:31 +0200 Subject: [PATCH] change notify banner. you can now set it in development.rb --- app/views/layouts/standard.html.erb | 4 +--- config/environment.rb | 3 +++ config/environments/development.rb | 4 +++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app/views/layouts/standard.html.erb b/app/views/layouts/standard.html.erb index 2eb70882..611ccdc7 100644 --- a/app/views/layouts/standard.html.erb +++ b/app/views/layouts/standard.html.erb @@ -40,9 +40,7 @@
- <% if RAILS_ENV != "production" -%> -
 
- <% end -%> + <%= NOTIFY_BAR %>

diff --git a/config/environment.rb b/config/environment.rb index 1fc8f03b..61db438c 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -107,6 +107,9 @@ if ( SITE_CONFIG['authentication_schemes'].include? 'cas') end end +# changed in development.rb to show under_construction bar +NOTIFY_BAR = "" unless defined?(NOTIFY_BAR) + tracks_version='2.1devel' # comment out next two lines if you do not want (or can not) the date of the # last git commit in the footer diff --git a/config/environments/development.rb b/config/environments/development.rb index c30f67cf..05c880d7 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -14,4 +14,6 @@ config.action_controller.perform_caching = false config.action_mailer.raise_delivery_errors = false # Unique cookies -config.action_controller.session = { :key => 'TracksDev' } \ No newline at end of file +config.action_controller.session = { :key => 'TracksDev' } + +NOTIFY_BAR="
 
"