]> git.openstreetmap.org Git - rails.git/commitdiff
Check API status correctly.
authorTom Hughes <tom@compton.nu>
Fri, 21 Sep 2007 08:13:17 +0000 (08:13 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 21 Sep 2007 08:13:17 +0000 (08:13 +0000)
app/views/layouts/site.rhtml
app/views/site/edit.rhtml

index 3c84dc47f0de2f64452d00b0f74c9e5497aab00c..ef11b5c0b1e55199701f2cd6c27f33f0887e8058 100644 (file)
@@ -67,7 +67,7 @@
       </div>
       <% end %>
 
-      <% if API_READONLY %>
+      <% if API_STAUS != :online %>
       <div id="alert">
         The OpenStreetMap database is currently in read-only mode while
         essential database maintenance work is carried out.
index b1c5555866a69b957cb9a39b224833911600ccfb..7d07895f8e889b879e7e650d321f9d82f8a62435 100644 (file)
@@ -1,4 +1,4 @@
-<% if API_READONLY %>
+<% if API_STATUS != :online %>
 <p>The OpenStreetMap database is currently in read-only mode while
    essential database maintenance work is carried out.
 </p>