]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/site.rhtml
Get rails to do asset tagging for the SWF file.
[rails.git] / app / views / layouts / site.rhtml
index 7283ebb32c6ad8bfcc0a399d3b0760d61d25c026..7aa2db7b9432cdb5d44a90e7e38d6fa9e0866e33 100644 (file)
@@ -11,8 +11,8 @@
   </head>
   <body>
     <div id="content">
-      <% if flash[:notice] %>
-        <div id="notice"><%= flash[:notice] %></div>
+      <% if @notice || flash[:notice] %>
+        <div id="notice"><%= @notice || flash[:notice] %></div>
       <% end %>
 
       <%= yield %>
       </div>
       <% end %>
 
-      <% if API_STATUS == :offline %>
+      <% if OSM_STATUS == :database_offline or OSM_STATUS == :api_offline %>
       <div id="alert">
         The OpenStreetMap database is currently offline while
         essential database maintenance work is carried out.
       </div>
-      <% elsif API_STATUS == :readonly %>
+      <% elsif OSM_STATUS == :api_readonly %>
       <div id="alert">
         The OpenStreetMap database is currently in read-only mode while
         essential database maintenance work is carried out.
         <%= yield :left_menu %>
       </div>
 
-      <div id="sotm" class="left_menu">
-        <div id="sotminfo">
-        Come to the second OpenStreetMap Conference, <a href="http://www.stateofthemap.org">The State of the Map</a>: 12th-13th July 2008, Limerick, Ireland.
-        </div>
-      </div>
-
       <%= yield :optionals %>
       <div id="cclogo">
         <center>