]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/site.rhtml
Improve alert messages when database is offline.
[rails.git] / app / views / layouts / site.rhtml
index 98ac423e03bae0df301cff95847a81d111d87e60..f3cdc97873b41628185289a75e65a223fcae2354 100644 (file)
       </div>
       <% end %>
 
       </div>
       <% end %>
 
-      <% if API_STATUS != :online %>
+      <% if API_STATUS == :offline %>
+      <div id="alert">
+        The OpenStreetMap database is currently offline while
+        essential database maintenance work is carried out.
+      </div>
+      <% elsif API_STATUS == :readonly %>
       <div id="alert">
         The OpenStreetMap database is currently in read-only mode while
         essential database maintenance work is carried out.
       <div id="alert">
         The OpenStreetMap database is currently in read-only mode while
         essential database maintenance work is carried out.