From: Tom Hughes Date: Fri, 21 Sep 2007 09:49:28 +0000 (+0000) Subject: Improve alert messages when database is offline. X-Git-Tag: live~8139 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/5cd05017a39fe1e161e7db5387d465324f25dde5 Improve alert messages when database is offline. --- diff --git a/app/views/layouts/site.rhtml b/app/views/layouts/site.rhtml index 98ac423e0..f3cdc9787 100644 --- a/app/views/layouts/site.rhtml +++ b/app/views/layouts/site.rhtml @@ -67,7 +67,12 @@ <% end %> - <% if API_STATUS != :online %> + <% if API_STATUS == :offline %> +
+ The OpenStreetMap database is currently offline while + essential database maintenance work is carried out. +
+ <% elsif API_STATUS == :readonly %>
The OpenStreetMap database is currently in read-only mode while essential database maintenance work is carried out. diff --git a/app/views/site/edit.rhtml b/app/views/site/edit.rhtml index 7d07895f8..6b5952f38 100644 --- a/app/views/site/edit.rhtml +++ b/app/views/site/edit.rhtml @@ -1,4 +1,8 @@ -<% if API_STATUS != :online %> +<% if API_STATUS == :offline %> +

The OpenStreetMap database is currently offline while + essential database maintenance work is carried out. +

+<% elsif API_STATUS == :readonly %>

The OpenStreetMap database is currently in read-only mode while essential database maintenance work is carried out.