]> git.openstreetmap.org Git - rails.git/commitdiff
Improve alert messages when database is offline.
authorTom Hughes <tom@compton.nu>
Fri, 21 Sep 2007 09:49:28 +0000 (09:49 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 21 Sep 2007 09:49:28 +0000 (09:49 +0000)
app/views/layouts/site.rhtml
app/views/site/edit.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.
index 7d07895f8e889b879e7e650d321f9d82f8a62435..6b5952f3856d32ca3a93294b0d85535e6d5c5843 100644 (file)
@@ -1,4 +1,8 @@
-<% if API_STATUS != :online %>
+<% if API_STATUS == :offline %>
+<p>The OpenStreetMap database is currently offline while
+   essential database maintenance work is carried out.
+</p>
+<% elsif API_STATUS == :readonly %>
 <p>The OpenStreetMap database is currently in read-only mode while
    essential database maintenance work is carried out.
 </p>
 <p>The OpenStreetMap database is currently in read-only mode while
    essential database maintenance work is carried out.
 </p>