change notify banner. you can now set it in development.rb

This commit is contained in:
Reinier Balt 2011-10-28 11:17:31 +02:00
parent 8fdbcedcba
commit 34a005ec0e
3 changed files with 7 additions and 4 deletions

View file

@ -40,9 +40,7 @@
<body class="<%= @controller.controller_name %>">
<div id="topbar">
<% if RAILS_ENV != "production" -%>
<div id="develop-notify-bar">&nbsp;</div>
<% end -%>
<%= NOTIFY_BAR %>
<div id="date">
<h1>

View file

@ -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

View file

@ -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' }
config.action_controller.session = { :key => 'TracksDev' }
NOTIFY_BAR="<div id=\"develop-notify-bar\">&nbsp;</div>"